aboutsummaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2012-10-16 15:38:58 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2012-10-16 15:38:58 +0000
commit29aeb4dbaf307e4f485350e2cb2e6eaa65560752 (patch)
treea6523b7f9bf2d5a90aa29d3a35230edb359537cf /gcc/common.opt
parent9286974a64c1dab24db7d326a9b077653551ed75 (diff)
2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063 PR c/40989 * doc/options.texi (EnabledBy): Document new form. * optc-gen.awk: Handle new form of EnabledBy. * common.opt (Wunused-but-set-parameter): Use EnabledBy. (Wunused-parameter): Likewise. * opts.c (finish_options): Do not handle them explicitly. * opt-functions.awk (search_var_name): New. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@192503 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index 0c6d578335a..e21fb71bbd4 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -673,7 +673,7 @@ Common Var(warn_unused) Init(0) Warning
Enable all -Wunused- warnings
Wunused-but-set-parameter
-Common Var(warn_unused_but_set_parameter) Init(-1) Warning
+Common Var(warn_unused_but_set_parameter) Warning EnabledBy(Wunused && Wextra)
Warn when a function parameter is only set, otherwise unused
Wunused-but-set-variable
@@ -689,7 +689,7 @@ Common Var(warn_unused_label) Warning EnabledBy(Wunused)
Warn when a label is unused
Wunused-parameter
-Common Var(warn_unused_parameter) Init(-1) Warning
+Common Var(warn_unused_parameter) Warning EnabledBy(Wunused && Wextra)
Warn when a function parameter is unused
Wunused-value