]> git.saurik.com Git - wxWidgets.git/commitdiff
enable all warnings (but disable some of them) for DEC/Compaq/HP C++ compiler
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 8 Oct 2005 21:28:12 +0000 (21:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 8 Oct 2005 21:28:12 +0000 (21:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in

index 1dc0572b297bbd40b587148f311b5cd28ba4338f..f2265306aa8b315125b068893ff49490c64d16be 100644 (file)
@@ -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++)