diff options
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r-- | gcc/fortran/options.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c index 764f5706ad0..08c551451e9 100644 --- a/gcc/fortran/options.c +++ b/gcc/fortran/options.c @@ -483,6 +483,13 @@ set_Wall (int setting) warn_maybe_uninitialized = setting; } +/* Set the options for -Wextra. */ + +static void +set_Wextra (int setting) +{ + gfc_option.warn_compare_reals = setting; +} static void gfc_handle_module_path_options (const char *arg) @@ -653,6 +660,15 @@ gfc_handle_option (size_t scode, const char *arg, int value, gfc_option.warn_conversion_extra = value; break; + case OPT_Wextra: + handle_generated_option (&global_options, &global_options_set, + OPT_Wunused_parameter, NULL, value, + gfc_option_lang_mask (), kind, loc, + handlers, global_dc); + set_Wextra (value); + + break; + case OPT_Wfunction_elimination: gfc_option.warn_function_elimination = value; break; |