aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2012-10-20 14:17:08 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2012-10-20 14:17:08 +0000
commitb7e15f147afcc59dc966db878145066b98bf009c (patch)
treec0cc84d9ea7c7ca3b8febc047eeae70bb2aa18ac /gcc/opts.c
parentfd8d8af39df77b2b5dbf49a1acbf0166475e08a5 (diff)
2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063 PR c/40989 c-family/ * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit, Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess, Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point, Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused, Wvolatile-register-var): Add LangEnabledBy or EnabledBy. * c-opts.c (c_common_handle_option): Remove explicit handling from here. (c_common_post_options): Likewise. gcc/ * opts.c (finish_options): Remove explicit handling from here. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@192635 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 98bbd302c8e..a1cf2d5bae6 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -829,10 +829,6 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
maybe_set_param_value (PARAM_MAX_STORES_TO_SINK, 0,
opts->x_param_values, opts_set->x_param_values);
- /* This replaces set_Wunused. */
- /* Wunused-local-typedefs is enabled by -Wunused or -Wall. */
- if (opts->x_warn_unused_local_typedefs == -1)
- opts->x_warn_unused_local_typedefs = opts->x_warn_unused;
}
#define LEFT_COLUMN 27