From: Vadim Zeitlin Date: Fri, 7 Oct 2005 21:56:51 +0000 (+0000) Subject: disable some (unavoidable) HP-UX aCC warnings X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/76f13e90403e847aa38425695c0cce05055ef224 disable some (unavoidable) HP-UX aCC warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure.in b/configure.in index e656846f6e..1dc0572b29 100644 --- a/configure.in +++ b/configure.in @@ -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++)