This is the mail archive of the gcc-help@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]

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)


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