Remove -Wpointer-arith to make recent egcs & glibc to stop generating
authorJody Goldberg <jody@src.gnome.org>
Mon, 27 Sep 1999 03:12:05 +0000 (03:12 +0000)
committerJody Goldberg <jody@src.gnome.org>
Mon, 27 Sep 1999 03:12:05 +0000 (03:12 +0000)
warnings.

svn path=/trunk/; revision=926

macros/ChangeLog
macros/compiler-flags.m4

index f1d1408..74dfc3c 100644 (file)
@@ -1,3 +1,10 @@
+1999-09-26  Jody Goldberg <jgoldberg@home.com>
+
+       * compiler-flags.m4 : Remove -Wpointer-arith.  It generates large
+         numbers of warnings under glibc2.1.2 with a recent egcs release.
+         The glibc maintainers have suggested removing this flag because it
+         is useless.
+
 1999-09-01  Havoc Pennington  <hp@pobox.com>
 
        * gnome-xml-check.m4: If you're going to AC_PATH_PROG then use the
index 278d509..63f8e2e 100644 (file)
@@ -21,7 +21,7 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[
       ## -W is not all that useful.  And it cannot be controlled
       ## with individual -Wno-xxx flags, unlike -Wall
       if test "x$enable_compile_warnings" = "xyes"; then
-       warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
+       warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
       fi
     fi
   fi
@@ -75,7 +75,7 @@ AC_DEFUN([GNOME_CXX_WARNINGS],[
       ## -W is not all that useful.  And it cannot be controlled
       ## with individual -Wno-xxx flags, unlike -Wall
       if test "x$enable_cxx_warnings" = "xyes"; then
-       warnCXXFLAGS="$warnCXXFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wshadow -Woverloaded-virtual"
+       warnCXXFLAGS="$warnCXXFLAGS -Wmissing-prototypes -Wmissing-declarations -Wshadow -Woverloaded-virtual"
       fi
     fi
   fi