[C++ patch] accept __null as sentinel

Michael Matz matz@suse.de
Sat Apr 30 01:21:00 GMT 2005


Hi,

On Fri, 29 Apr 2005, Mark Mitchell wrote:

> > > "Issue all the warnings demanded by strict ISO C and ISO C++; reject
> > > all programs that use forbidden extensions, and some other programs
> > > that do not follow ISO C and ISO C++."
> > 
> > 
> > Yes, -pedantic does fit.

Aw.  And to add to the funnyness of this thread I forgot the "not" here.  
Not deliberately, though.

> The most practical approach to solving your problem would seem to me to
> post a patch that adds a new -W flag for this warning (and moves the
> code to c-common.c, per RTH's suggestion), and not include this warning
> in any existing warning group.  If you copy me, I'll be happy to review
> and approve. Then, we can move it into some warning group (be it
> -pedantic, -W, -Wformat=2, etc.) at a later date.

Bummer, I just was about to resend it with just the c-common.h change.  
Perhaps only tomorrow, as this requires documentation then also.


Ciao,
Michael.



More information about the Gcc-patches mailing list