diff options
author | cagney <cagney@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-17 08:15:29 +0000 |
---|---|---|
committer | cagney <cagney@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-17 08:15:29 +0000 |
commit | 6dfd0eba5a28ca64fd1dc25861c20a167e752fd1 (patch) | |
tree | 2543ce057f160b4e63e78f64be913189cbabb8e5 /gcc/flags.h | |
parent | f406a14a2a8f3bcf7a0c5204177b3fe349193cf9 (diff) | |
download | gcc-6dfd0eba5a28ca64fd1dc25861c20a167e752fd1.tar.gz |
Add options -Wunused-variable, -Wunused-function, -Wunused-label,
-Wunused-parameter. Retain existing -Wunused behavour. Document.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33953 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r-- | gcc/flags.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/flags.h b/gcc/flags.h index 9ca120c2020..3c543bc5bcd 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -71,9 +71,17 @@ extern int inhibit_warnings; extern int extra_warnings; -/* Nonzero to warn about unused local variables. */ +/* Nonzero to warn about unused variables, functions et.al. Use + set_Wunused() to update the -Wunused-* flags that correspond to the + -Wunused option. */ -extern int warn_unused; +extern void set_Wunused PARAMS ((int setting)); + +extern int warn_unused_function; +extern int warn_unused_label; +extern int warn_unused_parameter; +extern int warn_unused_variable; +extern int warn_unused_value; /* Nonzero to warn about code which is never reached. */ |