From 6dfd0eba5a28ca64fd1dc25861c20a167e752fd1 Mon Sep 17 00:00:00 2001 From: cagney Date: Wed, 17 May 2000 08:15:29 +0000 Subject: 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 --- gcc/flags.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'gcc/flags.h') 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. */ -- cgit v1.2.1