warn_unused_result

Havoc Pennington hp at redhat.com
Fri Apr 16 01:34:02 EST 2004


Hi,

I just read this in lwn:

          Then, there are various cleanup and safety patches. For
        example,  gcc 3.4 supports a "warn_unused_result" attribute on
        functions; the compiler will complain when code calls a function
        marked with this attribute and fails to check the return value.
        
That sounds pretty nice, would be cool to use in dbus. Not a bad GLib
feature either.

Havoc





More information about the dbus mailing list