This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [C++ patch] accept __null as sentinel


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.


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