aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/misc.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2010-05-16 10:30:39 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2010-05-16 10:30:39 +0000
commitfa36ce9c63a6a7531df13300a41483ac7e3268fa (patch)
tree505e5e63a742ae4215bd8f56d425a48677b7934e /gcc/ada/gcc-interface/misc.c
parent491fc0e191ca1256495e1d890573b3ade38a8001 (diff)
downloadgcc-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/ada/gcc-interface/misc.c')
-rw-r--r--gcc/ada/gcc-interface/misc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c
index c8193f3..0f85393 100644
--- a/gcc/ada/gcc-interface/misc.c
+++ b/gcc/ada/gcc-interface/misc.c
@@ -209,12 +209,7 @@ gnat_handle_option (size_t scode, const char *arg, int value,
case OPT_Wall:
warn_unused = value;
-
- /* 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 (warn_uninitialized != 1)
- warn_uninitialized = (value ? 2 : 0);
+ warn_uninitialized = value;
break;
/* These are used in the GCC Makefile. */