Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 36812: /trunk/epan/ /trunk/epan/: pr

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Fri, 22 Apr 2011 13:25:58 -0400
Stephen Fisher wrote:
On Fri, Apr 22, 2011 at 03:15:17PM +0000, morriss@xxxxxxxxxxxxx wrote:

Log:
 If we're using GNUC, use attribute warn_unused_result to verify that the
 return value of proto_item_add_subtree() is used.
(The WARN_IF_UNUSED macro doesn't belong here... But where should it go?)

We define _U_ to mean "__attribute__((unused))" if we're using GCC and "" if we're not using configure.in.

That sounds like a nice idea, but it would require re-implementing the checks in cmake :-(. I guess I'll go with Jakub's suggestion for g_gnuc.h .