]> git.saurik.com Git - wxWidgets.git/commitdiff
disable some (unavoidable) HP-UX aCC warnings
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 Oct 2005 21:56:51 +0000 (21:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 Oct 2005 21:56:51 +0000 (21:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in

index e656846f6e52658730ca33edba0cac19337db999..1dc0572b297bbd40b587148f311b5cd28ba4338f 100644 (file)
@@ -1944,6 +1944,20 @@ if test "x$SGICXX" = "xyes"; then
     CXXFLAGS="$CXXFLAGS -woff 3970"
 fi
 
+dnl HP-UX c89/aCC compiler warnings
+if test "x$HPCC" = "xyes"; then
+    dnl 2011: "unrecognized preprocessor directive": nice warning but it's given
+    dnl       even for directives inside #if which is not true (i.e. which are
+    dnl       used for other compilers/OS) and so we have no way to get rid of it
+    dnl 2450: "long long is non standard" -- yes, we know
+    CFLAGS="$CFLAGS +W 2011,2450"
+fi
+if test "x$HPCXX" = "xyes"; then
+    dnl 2340: "value copied to temporary, reference to temporary used": very
+    dnl       painful as triggered by any occurrence of user-defined conversion
+    CXXFLAGS="$CXXFLAGS +W 2340"
+fi
+
 dnl check for std::string or std::wstring
 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
     AC_LANG_PUSH(C++)