[Bug c/30719] gcc should probably warn if users compile without -O

tvb at gnome dot org gcc-bugzilla@gcc.gnu.org
Wed Feb 7 15:00:00 GMT 2007



------- Comment #4 from tvb at gnome dot org  2007-02-07 14:59 -------
(In reply to comment #3)
> What is there to warn about?
> If you do -Winitialize without -O, you get a warning so ...
> 

I just tried the explicit -Wuninitialized, very good, 
and I noticed at least its documented in the man pages.

But who ever uses -Wuninitialized ?

People expect to get -Wuninitialized with -Wall, everyone
uses -Wall, it would be great if any expectable warnings are
disabled you should get the same warning message.

So to recap, it would be much more usefull if I got this
message when compiling with -Wall but no -O :

cc1: warning: -Wuninitialized is not supported without -O

This would make sence because to specify -Wall, *is* to explicitly
mention -Wuninitialized.


-- 

tvb at gnome dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tvb at gnome dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30719



More information about the Gcc-bugs mailing list