[PATCH] Fixes sentinel warnings on GCC4
David Hampton
hampton-gnucash at rainbolthampton.net
Tue Dec 6 01:55:06 EST 2005
On Tue, 2005-12-06 at 00:55 -0500, Chris Shoemaker wrote:
> Well, that's exactly why this warning was recently added to gcc, and
> why the glib and gtk+ sources were tagged with attribute((sentinel)).
> (Although that also has the benefit of catching no sentinel at all
> which is more important than sentinal-of-wrong-size.) As to why it's
> currently enabled only for g++, I have no idea. I've asked on the gcc
> ML.
Sentinel checking works across the board in gcc4. Its strict sentinel
checking that can only be enabled when compiling C++ code.
David
More information about the gnucash-devel
mailing list