ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 36772: /trunk/plugins/profinet/ /tru

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Fri, 22 Apr 2011 11:18:22 -0400
Stephen Fisher wrote:
On Fri, Apr 22, 2011 at 03:09:01PM +0200, Alexis La Goutte wrote:

Why not add a check (in checkAPIs.pl) if proto_item_add_subtree always return a value ?

Good idea. Another way to do it is a gcc attribute called warn_unused_result:
  http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html

That was my thought this morning as well; I added that check (after fixing all the resulting warnings) in rev 36812.