misc.c (gnat_handle_option): Set warn_maybe_uninitialized.
authorMichael Matz <matz@suse.de>
Fri, 29 Apr 2011 12:23:46 +0000 (12:23 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Fri, 29 Apr 2011 12:23:46 +0000 (12:23 +0000)
ada/
* gcc-interface/misc.c (gnat_handle_option): Set
warn_maybe_uninitialized.

fortran/
* options.c (options.c): Set warn_maybe_uninitialized.

From-SVN: r173154

gcc/ada/ChangeLog
gcc/ada/gcc-interface/misc.c
gcc/fortran/ChangeLog
gcc/fortran/options.c

index 2ef97cbdf5d8336a339e33e470ba8641801650f2..a6f91a55b4039162dc39909419d6154bcef2860d 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-29  Michael Matz  <matz@suse.de>
+
+       * gcc-interface/misc.c (gnat_handle_option): Set
+       warn_maybe_uninitialized.
+
 2011-04-23  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * gnat_ugn.texi (Complexity Metrics Control): Update link to
index 1f00b33ace3f3e925d712c4a64d9807a51b7cd5d..4067e01e78d1e60d4aaa5b72a44b16a2c8c3fec4 100644 (file)
@@ -112,6 +112,7 @@ gnat_handle_option (size_t scode, const char *arg ATTRIBUTE_UNUSED, int value,
     case OPT_Wall:
       warn_unused = value;
       warn_uninitialized = value;
+      warn_maybe_uninitialized = value;
       break;
 
     case OPT_Wmissing_prototypes:
index 7f797b4acf93725b6be973a98ac60caf41264da5..199495c2926aa073bd91bf9be86a3dd2fdbe29b9 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-29  Michael Matz  <matz@suse.de>
+
+       * options.c (options.c): Set warn_maybe_uninitialized.
+
 2011-04-28  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/48112
index bc65f6bf66b724586406b279fe8152dcd8178f59..9c0e0002e9068c84ee1c81734bf7746d2c7946bc 100644 (file)
@@ -461,6 +461,7 @@ set_Wall (int setting)
   warn_return_type = setting;
   warn_switch = setting;
   warn_uninitialized = setting;
+  warn_maybe_uninitialized = setting;
 }