]> granicus.if.org Git - procps-ng/commitdiff
enable warnings
authoralbert <>
Wed, 29 May 2002 04:54:06 +0000 (04:54 +0000)
committeralbert <>
Wed, 29 May 2002 04:54:06 +0000 (04:54 +0000)
configure

index 223a32d94603400a169e440ed8c1ec0f0bfb7dc5..eddbd35b2b2694f07ed823252866222d4ff582f0 100755 (executable)
--- a/configure
+++ b/configure
@@ -990,21 +990,15 @@ rm -f conftest*
 
 fi
 
+#
+# Unfortunately not every gcc supports these:
+# -Wpadded -Wunreachable-code -Wdisabled-optimization
+#
 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 if test "$ac_test_CFLAGS" = set; then
   CFLAGS="$ac_save_CFLAGS"
-elif test $ac_cv_prog_cc_g = yes; then
-  if test "$GCC" = yes; then
-    CFLAGS="-g -O2"
-  else
-    CFLAGS="-g"
-  fi
 else
-  if test "$GCC" = yes; then
-    CFLAGS="-O2"
-  else
-    CFLAGS=
-  fi
+  CFLAGS="-O2 -fno-common -Wcast-align -Wconversion -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -W -Wall -Wstrict-prototypes -Wshadow -Wmissing-prototypes"
 fi
 
 # Find a good install program.  We prefer a C program (faster),