Patch: for gcj, make -Wall imply -Wunused
Tom Tromey
tromey@cygnus.com
Thu Mar 16 09:26:00 GMT 2000
I'm checking in this patch with Alex's approval.
This makes gcj a bit more like the C compiler.
2000-03-16 Tom Tromey <tromey@cygnus.com>
* lang.c (lang_decode_option): Enable -Wunused when -Wall given.
Tom
Index: lang.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/lang.c,v
retrieving revision 1.38
diff -u -r1.38 lang.c
--- lang.c 2000/03/14 05:01:04 1.38
+++ lang.c 2000/03/16 17:23:53
@@ -246,6 +246,9 @@
{
flag_wall = 1;
flag_redundant = 1;
+ /* When -Wall given, enable -Wunused. We do this because the C
+ compiler does it, and people expect it. */
+ warn_unused = 1;
return 1;
}
More information about the Java-patches
mailing list