Wireshark mailing list archives
Re: [Wireshark-commits] rev 36812: /trunk/epan/ /trunk/epan/: proto.h
From: Jeff Morriss <jeff.morriss.ws () gmail com>
Date: Fri, 22 Apr 2011 13:25:58 -0400
Stephen Fisher wrote:
On Fri, Apr 22, 2011 at 03:15:17PM +0000, morriss () wireshark org 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 .
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Re: [Wireshark-commits] rev 36812: /trunk/epan/ /trunk/epan/: proto.h Stephen Fisher (Apr 22)
- Re: [Wireshark-commits] rev 36812: /trunk/epan/ /trunk/epan/: proto.h Jeff Morriss (Apr 22)