This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Inappropriate Warning Cannot Be Turned Off


> Date: Tue, 6 Jun 2000 11:10:10 -0400 (EDT)
> From: David Cogen <cogen@ll.mit.edu>
> To: mrs@windriver.com, gcc-bugs@gcc.gnu.org

> The warning is correct, in that what it is warning me about is exactly what
> it is doing. It is "inappropriate" because what it is doing is exactly what I
> would expect it to do, and the only thing that makes sense for it to do!

> Perhaps inappropriate is the wrong word. 

Ah...  I get it.  You're smart, the compiler `warns' about valid code
doing exactly what you expect it should do.  This is wrong, to you.
There exist others that don't know what the compiler should do, the
compiler does what is right, it doesn't match their expectation, and
they think it is a bug.  The warning was added to head them off and
educate them.  Hum, -Wnotanidiot should turn it off, though, we can
debate the spelling.  In time, the warning should disappear, as people
are educated.  Maybe it should be moved to just -Wall at some point?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]