From: Vadim Zeitlin Date: Sat, 8 Oct 2005 21:28:12 +0000 (+0000) Subject: enable all warnings (but disable some of them) for DEC/Compaq/HP C++ compiler X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/179daed8f0d8e59ef06dfbdcaa7e855b40cc1c7a?ds=inline enable all warnings (but disable some of them) for DEC/Compaq/HP C++ compiler git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure.in b/configure.in index 1dc0572b29..f2265306aa 100644 --- a/configure.in +++ b/configure.in @@ -1958,6 +1958,18 @@ if test "x$HPCXX" = "xyes"; then CXXFLAGS="$CXXFLAGS +W 2340" fi +dnl DEC/Compaq/HP cxx warnings +if test "x$COMPAQCXX" = "xyes"; then + dnl -w0 enables all warnings, then we disable some of them: + dnl basclsnondto: base class dtor non virtual (sometimes we do want this) + dnl unrimpret: "end of routine block may be unreachable" is given for + dnl every "if ( ) return ...; else return ...;" + dnl intconlosbit: "conversion to integral type of smaller size could lose + dnl data" this is a useful warning but there are too many of + dnl them for now + CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" +fi + dnl check for std::string or std::wstring if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then AC_LANG_PUSH(C++)