diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-08 23:15:31 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-08 23:15:31 +0000 |
commit | e73f7547c50e91654c691a620a949085645c4e51 (patch) | |
tree | 78d365c089bbd5db307fb058a73ce73b455dad1f /gcc/java | |
parent | d40c9e333328e700c7a6f50f7e007dcd9dfcf84c (diff) | |
download | gcc-e73f7547c50e91654c691a620a949085645c4e51.zip gcc-e73f7547c50e91654c691a620a949085645c4e51.tar.gz gcc-e73f7547c50e91654c691a620a949085645c4e51.tar.bz2 |
re PR c/28875 ("-Wextra -Wno-unused-parameter -Wall" doesn't work as expected)
2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR 28875
* flags.h (set_Wunused): Delete
* toplev.c (process_options): Handle Wunused flags here.
* opts.c (maybe_warn_unused_parameter): Delete.
(common_handle_option): Replace set_Wunused by warn_unused.
(set_Wextra): Do not handle Wunused-parameter here.
(set_Wunused): Delete.
* c-opts.c (c_common_handle_option): Replace set_Wunused by
warn_unused.
* common.opt (Wunused): Add Var and Init.
(Wunused-function): Likewise.
(Wunused-label): Likewise.
(Wunused-parameter): Likewise.
(Wunused-value): Likewise.
(Wunused-variable): Likewise.
fortran/
* options.c (set_Wall): Replace set_Wunused by warn_unused.
java/
* lang.c (java_handle_option): Replace set_Wunused with
warn_unused.
testsuite/
* gcc.dg/unused-6-no.c: New.
* gcc.dg/unused-6-WallWextra.c: New.
From-SVN: r138890
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/java/lang.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index b2321e3..ba39be4 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,9 @@ +2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org> + + PR 28875 + * lang.c (java_handle_option): Replace set_Wunused with + warn_unused. + 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * gcj.texi: Update copyright years. Do not list GPL as diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 2738376..d049aeb 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -221,7 +221,7 @@ java_handle_option (size_t scode, const char *arg, int value) flag_wall = value; /* When -Wall given, enable -Wunused. We do this because the C compiler does it, and people expect it. */ - set_Wunused (value); + warn_unused = value; break; case OPT_fenable_assertions_: |