This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Why is -Wstrict-null-sentinel (C++ only)?
- From: Chris Shoemaker <c dot shoemaker at cox dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 12 Dec 2005 13:20:04 -0500
- Subject: Why is -Wstrict-null-sentinel (C++ only)?
[ This was posted to gcc@gcc.gnu.org last week, but with no reply, so
I'm reposting here. Any ideas? ]
I want to warn at the use of unadorned "NULL" as sentinel value in C
programs. Why is this option (-Wstrict-null-sentinel) restricted to
C++ programs? Or is there some other way to get this warning?
-chris
(Please 'cc'; not subscribed)