Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 37602: /trunk/gtk/ /trunk/gtk/: iax2

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 8 Jun 2011 01:42:34 -0700
On Jun 8, 2011, at 12:58 AM, Stig Bjørlykke wrote:

> I get this on Ubuntu 11.04:
> 
> iax2_analysis.c: In function ‘copy_file’:
> iax2_analysis.c:2183:22: error: ignoring return value of ‘write’,
> declared with attribute warn_unused_result
> iax2_analysis.c:2186:22: error: ignoring return value of ‘write’,
> declared with attribute warn_unused_result
> iax2_analysis.c:2189:22: error: ignoring return value of ‘write’,
> declared with attribute warn_unused_result
> iax2_analysis.c:2192:22: error: ignoring return value of ‘write’,
> declared with attribute warn_unused_result
> iax2_analysis.c:2195:22: error: ignoring return value of ‘write’,
> declared with attribute warn_unused_result
> iax2_analysis.c:2198:22: error: ignoring return value of ‘write’,
> declared with attribute warn_unused_result

As the comment before those calls says:

	/* XXX: Should we be checking for write errors below ? */ 

The answer is "yes".