diff configure.in @ 2553:b880fa9b5d8a

[xemacs-hg @ 2005-02-03 17:33:50 by james] Fix the C++ build the rest of the way. See xemacs-patches message with ID <ps4qgteel0.fsf@diannao.ittc.ku.edu>.
author james
date Thu, 03 Feb 2005 17:34:03 +0000
parents 38caebdefb55
children 3d8cce0303fa
line wrap: on
line diff
--- a/configure.in	Thu Feb 03 16:30:38 2005 +0000
+++ b/configure.in	Thu Feb 03 17:34:03 2005 +0000
@@ -2103,7 +2103,7 @@
   elif test "$CC" = "xlc"; then
     cflags_warning="-qinfo"
   elif test "$GCC" = "yes"; then
-    cflags_warning="-Wall -Wno-switch -Wmissing-prototypes"
+    cflags_warning="-Wall -Wno-switch -Wundef"
     dnl This is not very useful, as it issues warnings that may appear
     dnl or disappear rather randomly, cannot easily be fixed, and are
     dnl not a big deal.  If you want it, add it yourself.
@@ -2113,7 +2113,6 @@
     dnl Warnings about char subscripts are pretty pointless, though,
     dnl and we use them in various places.
     cflags_warning="$cflags_warning -Wsign-compare -Wno-char-subscripts"
-    cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes"
     test "$__GCC3" = "yes" && cflags_warning="$cflags_warning -Wpacked"
     dnl glibc is intentionally not `-Wpointer-arith'-clean.
     dnl Ulrich Drepper has rejected patches to fix the glibc header files.
@@ -2134,6 +2133,7 @@
       xe_cflags_warning="$cflags_warning -Wunused-parameter"
     fi
     cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations"
+    cflags_warning="$cflags_warning -Wmissing-prototypes -Wstrict-prototypes"
     dnl **** If more gcc/g++ flags are added, from here on must handle
     dnl **** cflags_warning and xe_cflags_warning in parallel
   elif test "$__ICC" = "yes"; then