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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[ This was posted to gcc@xxxxxxxxxxx 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux