This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: for gcj, make -Wall imply -Wunused
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: for gcj, make -Wall imply -Wunused
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 16 Mar 2000 10:29:31 -0700
- Reply-To: tromey at cygnus dot com
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;
}