[kaffe] patch to fix *all* warnings in kaffe-HEAD

Adam Heath doogie at brainfood.com
Thu Apr 1 08:57:02 PST 2004


Please apply the attached 29-line patch.  After applying, kaffe will no longer
have *any* gcc warnings.

It took me all night to develope this, hope you guys like it.
-------------- next part --------------
Index: configure.ac
===================================================================
RCS file: /cvs/kaffe/kaffe/configure.ac,v
retrieving revision 1.3
diff -u -r1.3 configure.ac
--- configure.ac	29 Mar 2004 19:45:35 -0000	1.3
+++ configure.ac	1 Apr 2004 16:55:08 -0000
@@ -87,35 +87,6 @@
 
 # turn on all other gcc warnings for more fixing fun
 
-#AX_CFLAGS_GCC_OPTION([-pedantic])
-#AX_CFLAGS_GCC_OPTION([-ansi])
-AX_CFLAGS_GCC_OPTION([-W])
-AX_CFLAGS_GCC_OPTION([Wfloat-equal])
-#AX_CFLAGS_GCC_OPTION([-Wtraditional])
-AX_CFLAGS_GCC_OPTION([-Wundef])
-AX_CFLAGS_GCC_OPTION([-Wendif-labels])
-AX_CFLAGS_GCC_OPTION([-Wshadow])
-AX_CFLAGS_GCC_OPTION([-Wpointer-arith])
-AX_CFLAGS_GCC_OPTION([-Wbad-function-cast])
-AX_CFLAGS_GCC_OPTION([-Wcast-qual])
-AX_CFLAGS_GCC_OPTION([-Wcast-align])
-AX_CFLAGS_GCC_OPTION([-Wwrite-strings]) 
-AX_CFLAGS_GCC_OPTION([-Wconversion])
-AX_CFLAGS_GCC_OPTION([-Wsign-compare]) 
-AX_CFLAGS_GCC_OPTION([-Waggregate-return]) 
-AX_CFLAGS_GCC_OPTION([-Wstrict-prototypes])
-AX_CFLAGS_GCC_OPTION([-Wmissing-prototypes])
-AX_CFLAGS_GCC_OPTION([-Wmissing-declarations])
-AX_CFLAGS_GCC_OPTION([-Wmissing-noreturn])
-AX_CFLAGS_GCC_OPTION([-Wmissing-format-attribute]) 
-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([-Winline])
-AX_CFLAGS_GCC_OPTION([-Wlong-long])
-AX_CFLAGS_GCC_OPTION([-Wdisabled-optimization])
 GCC_ATTRIBUTE_CONST
 GCC_ATTRIBUTE_NORETURN
 GCC_ATTRIBUTE_UNUSED


More information about the kaffe mailing list