diff options
author | Tom Tromey <tromey@cygnus.com> | 2000-03-16 17:26:46 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2000-03-16 17:26:46 +0000 |
commit | ae23f3ed01aea900e9c046cddaa9f0b632d1c932 (patch) | |
tree | b6fe263636f9233d5fa7beecfd40a547bdff1022 /gcc/java/lang.c | |
parent | 26725434584b0eac794cc9635ab90217c14aad47 (diff) | |
download | gcc-ae23f3ed01aea900e9c046cddaa9f0b632d1c932.zip gcc-ae23f3ed01aea900e9c046cddaa9f0b632d1c932.tar.gz gcc-ae23f3ed01aea900e9c046cddaa9f0b632d1c932.tar.bz2 |
* lang.c (lang_decode_option): Enable -Wunused when -Wall given.
From-SVN: r32591
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r-- | gcc/java/lang.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c index d11cee1..d6c808a 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -246,6 +246,9 @@ lang_decode_option (argc, argv) { 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; } |