when using __attribute__((__sentinel__)) with the C++ NULL defined as __null, a sentinel warning is still triggered. Attached testcase gives: g++ -c xx.cc -Wall xx.cc: In function ‘void g()’: xx.cc:5: warning: missing sentinel in function call
-- Summary: attribute(sentinel) has problems with C++ __null Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: marcus at jet dot franken dot de CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19542