[kaffe] CVS kaffe (robilad): Added -W and -Wextra warning flags

Kaffe CVS cvs-commits at kaffe.org
Sat Aug 13 16:04:33 PDT 2005


PatchSet 6823 
Date: 2005/08/13 22:48:43
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Added -W and -Wextra warning flags
2005-08-13  Dalibor Topic  <robilad at kaffe.org>

        * configure.ac: Add -W and -Wextra to warning options.

        Requested by: Andreas Tobler  <a.tobler at schweiz.ch>

Members: 
	ChangeLog:1.4347->1.4348 
	configure:1.477->1.478 
	configure.ac:1.160->1.161 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4347 kaffe/ChangeLog:1.4348
--- kaffe/ChangeLog:1.4347	Sat Aug 13 21:45:38 2005
+++ kaffe/ChangeLog	Sat Aug 13 22:48:43 2005
@@ -1,5 +1,11 @@
 2005-08-13  Dalibor Topic  <robilad at kaffe.org>
 
+	* configure.ac: Add -W and -Wextra to warning options.
+
+	Requested by: Andreas Tobler  <a.tobler at schweiz.ch>
+
+2005-08-13  Dalibor Topic  <robilad at kaffe.org>
+
 	Resynced with GNU Classpath.
 
 	2005-08-12  Thomas Fitzsimmons  <fitzsim at redhat.com>
Index: kaffe/configure
diff -u kaffe/configure:1.477 kaffe/configure:1.478
--- kaffe/configure:1.477	Sat Aug 13 15:38:43 2005
+++ kaffe/configure	Sat Aug 13 22:48:45 2005
@@ -3484,21 +3484,29 @@
 # the following are covered by -Wall, but we list them separately, so
 # that it's easier to control.
 
-
-
+# AX_CFLAGS_GCC_OPTION([-Wno-import])
 # AX_CFLAGS_GCC_OPTION([-Wchar-subscripts])
 # AX_CFLAGS_GCC_OPTION([-Wcomment])
 
+# AX_CFLAGS_GCC_OPTION([-Wformat])
+# AX_CFLAGS_GCC_OPTION([-Wformat-y2k])
+# AX_CFLAGS_GCC_OPTION([-Wno-format-extra-args])
+# AX_CFLAGS_GCC_OPTION([-Wno-format-zero-length])
+# AX_CFLAGS_GCC_OPTION([-Wformat-nonliteral])
+# AX_CFLAGS_GCC_OPTION([-Wformat-security])
 # -Wformat=2 includes -Wformat, -Wformat-nonliteral -Wformat-security, -Wformat-y2k
 # AX_CFLAGS_GCC_OPTION([-Wformat=2])
 
 # -Wnonnull is included in -Wformat
+# AX_CFLAGS_GCC_OPTION([-Wnonnull])
 
 # -Winit-self requires(-Wunitialized)
+# AX_CFLAGS_GCC_OPTION([-Winit-self])
 
 # AX_CFLAGS_GCC_OPTION([-Wimplicit-function-declaration])
 # AX_CFLAGS_GCC_OPTION([-Wimplicit-int])
 # -Wimplicit includes -Wimplicit-int, -Wimplicit-function-declaration
+# AX_CFLAGS_GCC_OPTION([-Wimplicit])
 # AX_CFLAGS_GCC_OPTION([-Wmain])
 # AX_CFLAGS_GCC_OPTION([-Wmissing-braces])
 # AX_CFLAGS_GCC_OPTION([-Wparentheses])
@@ -3514,6 +3522,7 @@
 # AX_CFLAGS_GCC_OPTION([-Wunused-variable])
 # AX_CFLAGS_GCC_OPTION([-Wunused-value])
 # -Wunused includes -Wunused-function, -Wunused-label, -Wunused-parameter, -Wunused-variable, -Wunused-value
+# AX_CFLAGS_GCC_OPTION([-Wunused])
 ## disable -Wuninitialized as it clashes with -O0
 ## leading to trouble for libtool, which
 ## misinterprets the compiler warnings for
@@ -3523,12 +3532,201 @@
 # requires -fstrict-aliasing
 # AX_CFLAGS_GCC_OPTION([-Wstrict-aliasing])
 # includes all of the above
+# AX_CFLAGS_GCC_OPTION([-Wall])
 
 # turn on all other gcc warnings for more fixing fun
 
-# AX_CFLAGS_GCC_OPTION([-W])	dnl new name is -Wextra
+# AX_CFLAGS_GCC_OPTION([-pedantic])
+# AX_CFLAGS_GCC_OPTION([-ansi])
+
+echo "$as_me:$LINENO: checking CFLAGS for gcc -W" >&5
+echo $ECHO_N "checking CFLAGS for gcc -W... $ECHO_C" >&6
+if test "${ac_cv_cflags_gcc_option__W+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_cflags_gcc_option__W="no, unknown"
+
+
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ ac_save_CFLAGS="$CFLAGS"
+for ac_arg in "-pedantic  % -W"     #
+do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
+   cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+	 { ac_try='test -z "$ac_c_werror_flag"
+			 || test ! -s conftest.err'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } &&
+	 { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_cflags_gcc_option__W=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+ CFLAGS="$ac_save_CFLAGS"
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__W" >&5
+echo "${ECHO_T}$ac_cv_cflags_gcc_option__W" >&6
+case ".$ac_cv_cflags_gcc_option__W" in
+     .ok|.ok,*)  ;;
+   .|.no|.no,*)  ;;
+   *)
+   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__W " 2>&1 >/dev/null
+   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__W") >&5
+  (: CFLAGS does contain $ac_cv_cflags_gcc_option__W) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__W\"") >&5
+  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__W") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__W"
+   fi
+ ;;
+esac
+	echo "$as_me:$LINENO: checking CFLAGS for gcc -Wextra" >&5
+echo $ECHO_N "checking CFLAGS for gcc -Wextra... $ECHO_C" >&6
+if test "${ac_cv_cflags_gcc_option__Wextra+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_cflags_gcc_option__Wextra="no, unknown"
+
+
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ ac_save_CFLAGS="$CFLAGS"
+for ac_arg in "-pedantic  % -Wextra"     #
+do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
+   cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+	 { ac_try='test -z "$ac_c_werror_flag"
+			 || test ! -s conftest.err'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } &&
+	 { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_cflags_gcc_option__Wextra=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+ CFLAGS="$ac_save_CFLAGS"
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wextra" >&5
+echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wextra" >&6
+case ".$ac_cv_cflags_gcc_option__Wextra" in
+     .ok|.ok,*)  ;;
+   .|.no|.no,*)  ;;
+   *)
+   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wextra " 2>&1 >/dev/null
+   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wextra") >&5
+  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wextra) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wextra\"") >&5
+  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wextra") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wextra"
+   fi
+ ;;
+esac
+
 
 # AX_CFLAGS_GCC_OPTION([-Wfloat-equal])
+# AX_CFLAGS_GCC_OPTION([-Wtraditional])
 # AX_CFLAGS_GCC_OPTION([-Wdeclaration-after-statement])
 # AX_CFLAGS_GCC_OPTION([-Wundef])
 # AX_CFLAGS_GCC_OPTION([-Wendif-labels])
@@ -3547,9 +3745,13 @@
 # AX_CFLAGS_GCC_OPTION([-Wmissing-declarations])
 # AX_CFLAGS_GCC_OPTION([-Wmissing-noreturn])
 # AX_CFLAGS_GCC_OPTION([-Wmissing-format-attribute])
+# AX_CFLAGS_GCC_OPTION([-Wno-multichar])
+# AX_CFLAGS_GCC_OPTION([-Wno-deprecated-declarations])
 # AX_CFLAGS_GCC_OPTION([-Wpacked])
+# AX_CFLAGS_GCC_OPTION([-Wpadded])
 # AX_CFLAGS_GCC_OPTION([-Wredundant-decls])
 # AX_CFLAGS_GCC_OPTION([-Wnested-externs])
+# AX_CFLAGS_GCC_OPTION([-Wunreachable-code])
 # AX_CFLAGS_GCC_OPTION([-Winvalid-pch])
 # AX_CFLAGS_GCC_OPTION([-Winline])
 # AX_CFLAGS_GCC_OPTION([-Wlong-long])
@@ -5763,7 +5965,7 @@
   ;;
 *-*-irix6*)
   # Find out which ABI we are using.
-  echo '#line 5766 "configure"' > conftest.$ac_ext
+  echo '#line 5968 "configure"' > conftest.$ac_ext
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -7120,7 +7322,7 @@
 
 
 # Provide some information about the compiler.
-echo "$as_me:7123:" \
+echo "$as_me:7325:" \
      "checking for Fortran 77 compiler version" >&5
 ac_compiler=`set X $ac_compile; echo $2`
 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
@@ -8222,11 +8424,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:8225: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:8427: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:8229: \$? = $ac_status" >&5
+   echo "$as_me:8431: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -8484,11 +8686,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:8487: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:8689: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:8491: \$? = $ac_status" >&5
+   echo "$as_me:8693: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -8546,11 +8748,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:8549: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:8751: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:8553: \$? = $ac_status" >&5
+   echo "$as_me:8755: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -10786,7 +10988,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 10789 "configure"
+#line 10991 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -10884,7 +11086,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 10887 "configure"
+#line 11089 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -13136,11 +13338,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:13139: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:13341: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:13143: \$? = $ac_status" >&5
+   echo "$as_me:13345: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -13198,11 +13400,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:13201: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:13403: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:13205: \$? = $ac_status" >&5
+   echo "$as_me:13407: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -14567,7 +14769,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 14570 "configure"
+#line 14772 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -14665,7 +14867,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 14668 "configure"
+#line 14870 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -15550,11 +15752,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:15553: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:15755: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:15557: \$? = $ac_status" >&5
+   echo "$as_me:15759: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -15612,11 +15814,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:15615: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:15817: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:15619: \$? = $ac_status" >&5
+   echo "$as_me:15821: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -17738,11 +17940,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:17741: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:17943: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:17745: \$? = $ac_status" >&5
+   echo "$as_me:17947: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -18000,11 +18202,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:18003: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:18205: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:18007: \$? = $ac_status" >&5
+   echo "$as_me:18209: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -18062,11 +18264,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:18065: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:18267: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:18069: \$? = $ac_status" >&5
+   echo "$as_me:18271: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -20302,7 +20504,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 20305 "configure"
+#line 20507 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -20400,7 +20602,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 20403 "configure"
+#line 20605 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
Index: kaffe/configure.ac
diff -u kaffe/configure.ac:1.160 kaffe/configure.ac:1.161
--- kaffe/configure.ac:1.160	Sat Aug 13 15:38:48 2005
+++ kaffe/configure.ac	Sat Aug 13 22:48:53 2005
@@ -87,31 +87,29 @@
 # the following are covered by -Wall, but we list them separately, so
 # that it's easier to control.
 
-
-
-dnl AX_CFLAGS_GCC_OPTION([-Wno-import])
+# AX_CFLAGS_GCC_OPTION([-Wno-import])
 # AX_CFLAGS_GCC_OPTION([-Wchar-subscripts])
 # AX_CFLAGS_GCC_OPTION([-Wcomment])
 
-dnl AX_CFLAGS_GCC_OPTION([-Wformat])
-dnl AX_CFLAGS_GCC_OPTION([-Wformat-y2k])
-dnl AX_CFLAGS_GCC_OPTION([-Wno-format-extra-args])
-dnl AX_CFLAGS_GCC_OPTION([-Wno-format-zero-length])
-dnl AX_CFLAGS_GCC_OPTION([-Wformat-nonliteral])
-dnl AX_CFLAGS_GCC_OPTION([-Wformat-security])
+# AX_CFLAGS_GCC_OPTION([-Wformat])
+# AX_CFLAGS_GCC_OPTION([-Wformat-y2k])
+# AX_CFLAGS_GCC_OPTION([-Wno-format-extra-args])
+# AX_CFLAGS_GCC_OPTION([-Wno-format-zero-length])
+# AX_CFLAGS_GCC_OPTION([-Wformat-nonliteral])
+# AX_CFLAGS_GCC_OPTION([-Wformat-security])
 # -Wformat=2 includes -Wformat, -Wformat-nonliteral -Wformat-security, -Wformat-y2k
 # AX_CFLAGS_GCC_OPTION([-Wformat=2])
 
 # -Wnonnull is included in -Wformat
-dnl AX_CFLAGS_GCC_OPTION([-Wnonnull])
+# AX_CFLAGS_GCC_OPTION([-Wnonnull])
 
 # -Winit-self requires(-Wunitialized)
-dnl AX_CFLAGS_GCC_OPTION([-Winit-self])
+# AX_CFLAGS_GCC_OPTION([-Winit-self])
 
 # AX_CFLAGS_GCC_OPTION([-Wimplicit-function-declaration])
 # AX_CFLAGS_GCC_OPTION([-Wimplicit-int])
 # -Wimplicit includes -Wimplicit-int, -Wimplicit-function-declaration
-dnl AX_CFLAGS_GCC_OPTION([-Wimplicit])
+# AX_CFLAGS_GCC_OPTION([-Wimplicit])
 # AX_CFLAGS_GCC_OPTION([-Wmain])
 # AX_CFLAGS_GCC_OPTION([-Wmissing-braces])
 # AX_CFLAGS_GCC_OPTION([-Wparentheses])
@@ -127,7 +125,7 @@
 # AX_CFLAGS_GCC_OPTION([-Wunused-variable])
 # AX_CFLAGS_GCC_OPTION([-Wunused-value])
 # -Wunused includes -Wunused-function, -Wunused-label, -Wunused-parameter, -Wunused-variable, -Wunused-value
-dnl AX_CFLAGS_GCC_OPTION([-Wunused])
+# AX_CFLAGS_GCC_OPTION([-Wunused])
 ## disable -Wuninitialized as it clashes with -O0
 ## leading to trouble for libtool, which
 ## misinterprets the compiler warnings for
@@ -137,16 +135,18 @@
 # requires -fstrict-aliasing
 # AX_CFLAGS_GCC_OPTION([-Wstrict-aliasing])
 # includes all of the above
-dnl AX_CFLAGS_GCC_OPTION([-Wall])
+# AX_CFLAGS_GCC_OPTION([-Wall])
 
 # turn on all other gcc warnings for more fixing fun
 
-dnl AX_CFLAGS_GCC_OPTION([-pedantic])
-dnl AX_CFLAGS_GCC_OPTION([-ansi])
-# AX_CFLAGS_GCC_OPTION([-W])	dnl new name is -Wextra
+# AX_CFLAGS_GCC_OPTION([-pedantic])
+# AX_CFLAGS_GCC_OPTION([-ansi])
+
+AX_CFLAGS_GCC_OPTION([-W])	dnl new name is -Wextra
+AX_CFLAGS_GCC_OPTION([-Wextra])
 
 # AX_CFLAGS_GCC_OPTION([-Wfloat-equal])
-dnl AX_CFLAGS_GCC_OPTION([-Wtraditional])
+# AX_CFLAGS_GCC_OPTION([-Wtraditional])
 # AX_CFLAGS_GCC_OPTION([-Wdeclaration-after-statement])
 # AX_CFLAGS_GCC_OPTION([-Wundef])
 # AX_CFLAGS_GCC_OPTION([-Wendif-labels])
@@ -165,13 +165,13 @@
 # AX_CFLAGS_GCC_OPTION([-Wmissing-declarations])
 # AX_CFLAGS_GCC_OPTION([-Wmissing-noreturn])
 # AX_CFLAGS_GCC_OPTION([-Wmissing-format-attribute]) 
-dnl AX_CFLAGS_GCC_OPTION([-Wno-multichar])
-dnl AX_CFLAGS_GCC_OPTION([-Wno-deprecated-declarations])
+# AX_CFLAGS_GCC_OPTION([-Wno-multichar])
+# AX_CFLAGS_GCC_OPTION([-Wno-deprecated-declarations])
 # AX_CFLAGS_GCC_OPTION([-Wpacked])
-dnl AX_CFLAGS_GCC_OPTION([-Wpadded])
+# AX_CFLAGS_GCC_OPTION([-Wpadded])
 # AX_CFLAGS_GCC_OPTION([-Wredundant-decls])
 # AX_CFLAGS_GCC_OPTION([-Wnested-externs])
-dnl AX_CFLAGS_GCC_OPTION([-Wunreachable-code])
+# AX_CFLAGS_GCC_OPTION([-Wunreachable-code])
 # AX_CFLAGS_GCC_OPTION([-Winvalid-pch])
 # AX_CFLAGS_GCC_OPTION([-Winline])
 # AX_CFLAGS_GCC_OPTION([-Wlong-long])




More information about the kaffe mailing list