[mosh-devel] compiler warning with mosh 1.2.4 / g++ 4.1.2
Marcus Kool
marcus at familiakool.net
Tue May 13 14:50:14 EDT 2014
Hi,
I compiled mosh-1.2.4 on CentOS 5 with g++ version 4.1.2 20080704 (Red Hat 4.1.2-54) and got the following warnings:
g++ -DHAVE_CONFIG_H -I. -I../.. -I./../statesync -I./../terminal -I./../network -I./../crypto -I../protobufs -I./../util -I/usr/kerberos/include -Wall -Werror -Wextra -pedantic -Wno-long-long
-Weffc++ -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector --param ssp-buffer-size=1 -fPIE -fno-default-inline -pipe -g -O2 -MT terminaloverlay.o -MD -MP -MF .deps/terminaloverlay.Tpo -c -o
terminaloverlay.o terminaloverlay.cc
cc1plus: warnings being treated as errors
terminaloverlay.cc: In member function 'void Overlay::NotificationEngine::apply(Terminal::Framebuffer&) const':
terminaloverlay.cc:245: warning: passing 'double' for argument 1 to 'std::string human_readable_duration(int, const std::string&)'
terminaloverlay.cc:251: warning: passing 'double' for argument 1 to 'std::string human_readable_duration(int, const std::string&)'
Note that on CentOS 6 with g++ 4.4.7 20120313 (Red Hat 4.4.7-3) there is no warning.
I am not a member of the mailing list so please reply to this email.
Thanks
Marcus
More information about the mosh-devel
mailing list