aboutsummaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authorManuel Lopez-Ibanez <manu@gcc.gnu.org>2008-08-08 23:15:31 +0000
committerManuel Lopez-Ibanez <manu@gcc.gnu.org>2008-08-08 23:15:31 +0000
commite5b794498e5d5af9fe13e823aacccd9db3ca8ed2 (patch)
tree78d365c089bbd5db307fb058a73ce73b455dad1f /gcc/flags.h
parent53c21dac3652a7af6260ff7266f16b99ede24cab (diff)
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. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@138890 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/flags.h b/gcc/flags.h
index e797d95c885..ceff962d98a 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -115,12 +115,6 @@ extern int optimize_size;
extern bool extra_warnings;
-/* Nonzero to warn about unused variables, functions et.al. Use
- set_Wunused() to update the -Wunused-* flags that correspond to the
- -Wunused option. */
-
-extern void set_Wunused (int setting);
-
/* Used to set the level of -Wstrict-aliasing, when no level is specified.
The external way to set the default level is to use
-Wstrict-aliasing=level.