From: Vadim Zeitlin Date: Fri, 14 Nov 2008 23:22:26 +0000 (+0000) Subject: disable warning about possible misaligned access given by HP aCC as we can't do anyth... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e4513a5eae01b77977d3062a8a14f796e8503d67 disable warning about possible misaligned access given by HP aCC as we can't do anything about it because it's triggered by all GTK+ cast macros git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure b/configure index ad112d7880..82fcdc5a66 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in 56747 2008-11-12 15:31:44Z VZ . +# From configure.in Id: configure.in 56751 2008-11-12 15:58:56Z VZ . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0. # @@ -24053,7 +24053,7 @@ if test "x$HPCC" = "xyes"; then CFLAGS="+W 2011,2450 $CFLAGS" fi if test "x$HPCXX" = "xyes"; then - CXXFLAGS="+W 2340 $CXXFLAGS" + CXXFLAGS="+W 2340,4232 $CXXFLAGS" fi if test "x$COMPAQCXX" = "xyes"; then diff --git a/configure.in b/configure.in index 764a9eacfb..a402c5825a 100644 --- a/configure.in +++ b/configure.in @@ -1786,7 +1786,11 @@ 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="+W 2340 $CXXFLAGS" + dnl 4232: "conversion from 'Foo *' to a more strictly aligned type 'Bar *' + dnl may cause misaligned access": this might indicate a real problem + dnl but any use of GTK+ cast macros results in it so it's unusable + dnl for wxGTK code + CXXFLAGS="+W 2340,4232 $CXXFLAGS" fi dnl DEC/Compaq/HP cxx warnings