In few other places: ========================= gcomm/src/gcomm/conf.hpp:538:30: error: call to function 'operator>=' that is neither visible in the template definition nor found by argument-dependent lookup if (val < min || val >= max) ================================= gcomm/src/gcomm/transport.hpp:59:18: warning: 'gcomm::Transport::close' hides overloaded virtual function [-Woverloaded-virtual] virtual void close(bool force = false) = 0; ^ gcomm/src/gcomm/protolay.hpp:217:18: note: hidden overloaded virtual function 'gcomm::Protolay::close' declared here: different number of parameters (0 vs 1) virtual void close() { } ^ clang++ -o gcomm/src/histogram.os -c -Wno-long-long -Wno-deprecated -ansi -pipe -fno-strict-aliasing -g -O3 -DNDEBUG -m64 -Wall -Wextra -Wno-unused-parameter -fPIC -fcolor-diagnostics -O2 -Wall -Wunreachable-code -pthread -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DHAVE_ASIO_SSL_HPP -I. -Iasio -Icommon -Igalerautils/src -Igcomm/src -Igcomm/src/gcomm -Igcache/src -Igcs/src -Iwsdb/src -Igalera/src gcomm/src/histogram.cpp In file included from gcomm/src/gmcast.cpp:5: In file included from gcomm/src/gmcast.hpp:14: gcomm/src/gcomm/transport.hpp:59:18: warning: 'gcomm::Transport::close' hides overloaded virtual function [-Woverloaded-virtual] virtual void close(bool force = false) = 0; ^ gcomm/src/gcomm/protolay.hpp:217:18: note: hidden overloaded virtual function 'gcomm::Protolay::close' declared here: different number of parameters (0 vs 1) virtual void close() { } ^ In file included from gcomm/src/gmcast.cpp:6: gcomm/src/gmcast_proto.hpp:59:25: warning: will never be executed [-Wunreachable-code] default: return "UNKNOWN"; ^~~~~~~~~ clang++ -o gcomm/src/pc.os -c -Wno-long-long -Wno-deprecated -ansi -pipe -fno-strict-aliasing -g -O3 -DNDEBUG -m64 -Wall -Wextra -Wno-unused-parameter -fPIC -fcolor-diagnostics -O2 -Wall -Wunreachable-code -pthread -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DHAVE_ASIO_SSL_HPP -I. -Iasio -Icommon -Igalerautils/src -Igcomm/src -Igcomm/src/gcomm -Igcache/src -Igcs/src -Iwsdb/src -Igalera/src gcomm/src/pc.cpp gcomm/src/evs_proto.cpp:2013:9: warning: will never be executed [-Wunreachable-code] break; ^~~~~ clang++ -o gcomm/src/pc_proto.os -c -Wno-long-long -Wno-deprecated -ansi -pipe -fno-strict-aliasing -g -O3 -DNDEBUG -m64 -Wall -Wextra -Wno-unused-parameter -fPIC -fcolor-diagnostics -O2 -Wall -Wunreachable-code -pthread -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DHAVE_ASIO_SSL_HPP -I. -Iasio -Icommon -Igalerautils/src -Igcomm/src -Igcomm/src/gcomm -Igcache/src -Igcs/src -Iwsdb/src -Igalera/src gcomm/src/pc_proto.cpp In file included from gcomm/src/gmcast_proto.cpp:5: gcomm/src/gmcast_proto.hpp:59:25: warning: will never be executed [-Wunreachable-code] default: return "UNKNOWN"; ^~~~~~~~~ clang++ -o gcomm/src/protonet.os -c -Wno-long-long -Wno-deprecated -ansi -pipe -fno-strict-aliasing -g -O3 -DNDEBUG -m64 -Wall -Wextra -Wno-unused-parameter -fPIC -fcolor-diagnostics -O2 -Wall -Wunreachable-code -pthread -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DHAVE_ASIO_SSL_HPP -I. -Iasio -Icommon -Igalerautils/src -Igcomm/src -Igcomm/src/gcomm -Igcache/src -Igcs/src -Iwsdb/src -Igalera/src gcomm/src/protonet.cpp In file included from gcomm/src/evs_proto.cpp:16: gcomm/src/gcomm/conf.hpp:538:30: error: call to function 'operator>=' that is neither visible in the template definition nor found by argument-dependent lookup if (val < min || val >= max) ^ gcomm/src/evs_proto.cpp:80:9: note: in instantiation of function template specialization 'gcomm::check_range' requested here check_range(Conf::EvsViewForgetTimeout, ^ /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../include/c++/4.8.2/bits/stl_relops.h:126:7: note: 'operator>=' should be declared prior to the call site or in namespace 'gu::datetime' operator>=(const _Tp& __x, const _Tp& __y) ^ 2 warnings and 1 error generated. scons: *** [gcomm/src/evs_proto.os] Error 1 In file included from gcomm/src/pc.cpp:5: In file included from gcomm/src/pc.hpp:5: gcomm/src/gcomm/transport.hpp:59:18: warning: 'gcomm::Transport::close' hides overloaded virtual function [-Woverloaded-virtual] virtual void close(bool force = false) = 0; ^ gcomm/src/gcomm/protolay.hpp:217:18: note: hidden overloaded virtual function 'gcomm::Protolay::close' declared here: different number of parameters (0 vs 1) virtual void close() { } ^ gcomm/src/pc_proto.cpp:1397:17: warning: will never be executed [-Wunreachable-code] break; ^~~~~ In file included from gcomm/src/protonet.cpp:8: In file included from gcomm/src/asio_protonet.hpp:15: In file included from asio/asio.hpp:22: In file included from asio/asio/basic_serial_port.hpp:28: In file included from asio/asio/serial_port_base.hpp:168: asio/asio/impl/serial_port_base.ipp:281:5: warning: will never be executed [-Wunreachable-code] break; ^~~~~ asio/asio/impl/serial_port_base.ipp:379:5: warning: will never be executed [-Wunreachable-code] break; ^~~~~ 1 warning generated. In file included from gcomm/src/protonet.cpp:8: In file included from gcomm/src/asio_protonet.hpp:17: In file included from asio/asio/ssl.hpp:19: In file included from asio/asio/ssl/context.hpp:21: In file included from asio/asio/ssl/context_service.hpp:25: asio/asio/ssl/detail/openssl_context_service.hpp:196:12: warning: will never be executed [-Wunreachable-code] ec = asio::error::invalid_argument; ^ asio/asio/ssl/detail/openssl_context_service.hpp:241:12: warning: will never be executed [-Wunreachable-code] ec = asio::error::invalid_argument; ^ asio/asio/ssl/detail/openssl_context_service.hpp:272:12: warning: will never be executed [-Wunreachable-code] ec = asio::error::invalid_argument; ^ gcomm/src/protonet.cpp:80:12: warning: will never be executed [-Wunreachable-code] return 0; // keep compiler happy ^ gcomm/src/protonet.cpp:78:42: warning: will never be executed [-Wunreachable-code] << "' not supported"; throw;