diff options
author | Joseph Myers <joseph@codesourcery.com> | 2011-05-11 12:11:34 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2011-05-11 12:11:34 +0100 |
commit | e9f8dcf9b3bd2972c947d793443a83a78104ae87 (patch) | |
tree | babd79b10257fe88a1745042a232ee7ddf2e50cc /gcc/toplev.c | |
parent | 10c224a9b0780fe3ae5d83a588046887203f2285 (diff) | |
download | gcc-e9f8dcf9b3bd2972c947d793443a83a78104ae87.tar.gz |
opts.c (finish_options): Move warning settings from process_options.
* opts.c (finish_options): Move warning settings from
process_options.
* toplev.c (process_options): Move warning settings to
finish_options.
From-SVN: r173651
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index d61addedfad..d0024273265 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1253,29 +1253,6 @@ process_options (void) maximum_field_alignment = initial_max_fld_align * BITS_PER_UNIT; - /* This replaces set_Wunused. */ - if (warn_unused_function == -1) - warn_unused_function = warn_unused; - if (warn_unused_label == -1) - warn_unused_label = warn_unused; - /* Wunused-parameter is enabled if both -Wunused -Wextra are enabled. */ - if (warn_unused_parameter == -1) - warn_unused_parameter = (warn_unused && extra_warnings); - if (warn_unused_variable == -1) - warn_unused_variable = warn_unused; - /* Wunused-but-set-parameter is enabled if both -Wunused -Wextra are - enabled. */ - if (warn_unused_but_set_parameter == -1) - warn_unused_but_set_parameter = (warn_unused && extra_warnings); - if (warn_unused_but_set_variable == -1) - warn_unused_but_set_variable = warn_unused; - if (warn_unused_value == -1) - warn_unused_value = warn_unused; - - /* This replaces set_Wextra. */ - if (warn_uninitialized == -1) - warn_uninitialized = extra_warnings; - /* Allow the front end to perform consistency checks and do further initialization based on the command line options. This hook also sets the original filename if appropriate (e.g. foo.i -> foo.c) |