summaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@gcc.gnu.org>2000-05-17 08:15:29 +0000
committerAndrew Cagney <cagney@gcc.gnu.org>2000-05-17 08:15:29 +0000
commit078721e1a2e6f361f4c7ed6b9017b6fb0d7211a1 (patch)
tree2543ce057f160b4e63e78f64be913189cbabb8e5 /gcc/flags.h
parentef94b7f541f59ed3d9f5953a86e026cb217615b6 (diff)
downloadgcc-078721e1a2e6f361f4c7ed6b9017b6fb0d7211a1.tar.gz
Add options -Wunused-variable, -Wunused-function, -Wunused-label,
-Wunused-parameter. Retain existing -Wunused behavour. Document. From-SVN: r33953
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h12
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. */