]> git.saurik.com Git - wxWidgets.git/commitdiff
disable warning about possible misaligned access given by HP aCC as we can't do anyth...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Nov 2008 23:22:26 +0000 (23:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Nov 2008 23:22:26 +0000 (23:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index ad112d788022072d31a2157c4131b5a69ee31030..82fcdc5a664c374e1bcdf4ca58da893995d5f047 100755 (executable)
--- 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
index 764a9eacfb76cc6689ecd6f390c43d165524cc74..a402c5825ab329073ffbdbee31ca6e5b2014ec06 100644 (file)
@@ -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