Why is -Wstrict-null-sentinel (C++ only)?

Chris Shoemaker c.shoemaker@cox.net
Tue Dec 6 05:29:00 GMT 2005


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)



More information about the Gcc mailing list