diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-05-16 10:30:39 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-05-16 10:30:39 +0000 |
commit | fa36ce9c63a6a7531df13300a41483ac7e3268fa (patch) | |
tree | 505e5e63a742ae4215bd8f56d425a48677b7934e /gcc/fortran/options.c | |
parent | 491fc0e191ca1256495e1d890573b3ade38a8001 (diff) | |
download | gcc-fa36ce9c63a6a7531df13300a41483ac7e3268fa.zip gcc-fa36ce9c63a6a7531df13300a41483ac7e3268fa.tar.gz gcc-fa36ce9c63a6a7531df13300a41483ac7e3268fa.tar.bz2 |
misc.c (gnat_handle_option): Remove special logic for Wuninitialized without -O.
2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
ada/
* gcc-interface/misc.c (gnat_handle_option): Remove special logic
for Wuninitialized without -O.
fortran/
* options.c (set_Wall): Remove special logic for Wuninitialized
without -O.
From-SVN: r159454
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r-- | gcc/fortran/options.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c index 28c9114..6a5a3db 100644 --- a/gcc/fortran/options.c +++ b/gcc/fortran/options.c @@ -413,14 +413,7 @@ set_Wall (int setting) warn_unused = setting; warn_return_type = setting; warn_switch = setting; - - /* We save the value of warn_uninitialized, since if they put - -Wuninitialized on the command line, we need to generate a - warning about not using it without also specifying -O. */ - if (setting == 0) - warn_uninitialized = 0; - else if (warn_uninitialized != 1) - warn_uninitialized = 2; + warn_uninitialized = setting; } |