This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ patch] accept __null as sentinel
On Sat, 30 Apr 2005, Michael Matz wrote:
> > Fine; then -Wformat=2 is a reasonable place.
>
> If you can agree with Joseph on that one, I would consider implementing it
> there. The reason I ask is because -Wformat has a specific purpose,
> whereunder the sentinel attribute does not fall.
The purpose of -Wformat is generally checking for calls to library
functions which may be problematic at runtime (but for which no diagnostic
is required at compile time). Hence the inclusion of -Wnonnull and
sentinel warnings in -Wformat.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)