Commit fa1a4543 by Richard Stallman

(main): When -W sets warn_uninitialized, avoid later warning

if warn_uninitialized is not supported.

From-SVN: r4993
parent c06cff95
...@@ -3107,7 +3107,11 @@ main (argc, argv, envp) ...@@ -3107,7 +3107,11 @@ main (argc, argv, envp)
else if (!strcmp (str, "W")) else if (!strcmp (str, "W"))
{ {
extra_warnings = 1; extra_warnings = 1;
warn_uninitialized = 1; /* 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 = 2;
} }
else if (str[0] == 'W') else if (str[0] == 'W')
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment