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
* Michael Matz <matz@suse.de> [050430 02:42]:
> > So, -Wall would be a better place, or -Wformat=2, as Joseph suggests, if
> > we think the warning is too annoying by default.
>
> -Wformat* is about format strings . I wouldn't like to introduce still
> another warning flag, except if it would be some collection flag
> containing some more warnings, in the line of what I wrote last mail (i.e.
> portability to outside the GCC+glibc world).
The current -Wformat already implies -Wnonnull[1], so it already has
implications beyond format strings.
Hochachtungsvoll,
Bernhard R. Link
[1] Though that check is quite limited. Warning also after constant
propagation would really enhance it massively.