[kaffe] CVS kaffe (doogie): Few more warnings added.

Kaffe CVS cvs-commits at kaffe.org
Tue May 31 13:23:37 PDT 2005


PatchSet 6604 
Date: 2005/05/31 20:18:35
Author: doogie
Branch: HEAD
Tag: (none) 
Log:
Few more warnings added.

Members: 
	ChangeLog:1.4130->1.4131 
	scripts/GCCWarning.pm:1.5->1.6 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4130 kaffe/ChangeLog:1.4131
--- kaffe/ChangeLog:1.4130	Tue May 31 19:45:32 2005
+++ kaffe/ChangeLog	Tue May 31 20:18:35 2005
@@ -1,5 +1,9 @@
 2005-05-31  Adam Heath  <doogie at brainfood.com>
 
+	* scripts/GCCWarning.pm: Few more warnings added.
+
+2005-05-31  Adam Heath  <doogie at brainfood.com>
+
 	* include/Makefile.am, include/Makefile.am:
 	  Prefix the classpath with gmp-math, so that java_math_BigInteger.h
 	  is generated correctly.
Index: kaffe/scripts/GCCWarning.pm
diff -u kaffe/scripts/GCCWarning.pm:1.5 kaffe/scripts/GCCWarning.pm:1.6
--- kaffe/scripts/GCCWarning.pm:1.5	Tue Dec 14 06:05:09 2004
+++ kaffe/scripts/GCCWarning.pm	Tue May 31 20:18:38 2005
@@ -80,6 +80,7 @@
 	register_warning( '-Wformat-nonliteral', qr/format not a string literal, argument types not checked$/m ),
 	register_warning( '-Wformat-nonliteral', qr/format not a string literal and no format arguments$/m ),
 	register_warning( '-Wimplicit-func-decl', qr/implicit declaration of function `([^']+)'$/m ),
+	register_warning( '-Wunused-function', qr/`([^']+)' defined but not used$/m ),
 	register_warning( '-Wunused-parameter', qr/unused parameter `([^']+)'$/m ),
 	register_warning( '-Wunused-variable', qr/unused variable `([^']+)'$/m ),
 	register_warning( '-Wshadow', qr/declaration of [`']([^']+)' shadows a global declaration\n${GCCWarning::prefix_regex}shadowed declaration is here$/m ),
@@ -106,7 +107,7 @@
 	register_warning( '-Wmissing-declarations', qr/`([^']+)' is not defined\s*$/m ),
 	register_warning( '-Wmissing-noreturn', qr/function might be possible candidate for attribute `(noreturn)'$/m ),
 	register_warning( '-Wmissing-noreturn', qr/`([^']+)' function does return$/m ),
-	register_warning( '-Wmissing-format-attribute', qr/function might be possible candidate for `printf' format attribute$/m ),
+	register_warning( '-Wmissing-format-attribute', qr/function might be possible candidate for `(printf)' format attribute$/m ),
 	register_warning( '-Wpadded', qr/padding struct to align `([^']+)'$/m ),
 	register_warning( '-Wnested-externs', qr/nested extern declaration of `([^']+)'$/m ),
 	register_warning( '-Wunreachable-code', qr/will never be executed$/m ),
@@ -126,5 +127,7 @@
 	register_warning( '-Wold-style-definition', qr/old-style parameter declaration$/m ),
 	register_warning( '-Wswitch-default', qr/switch missing default case$/m ),
 	register_warning( '-Wswitch-enum', qr/enumeration value `([^']+)' not handled in switch$/m ),
+	register_warning( '-Wuninitialized', qr/`([^']+)' might be used uninitialized in this function$/m ),
+	register_warning( '-Wformat', qr/format argument is not a (pointer) \(arg (3)\)$/m ),
 }
 1;




More information about the kaffe mailing list