Wireshark-dev: Re: [Wireshark-dev] Compiling wirehsark --treat all warnings as errors.

Date Prev · Date Next · Thread Prev · Thread Next
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 30 Sep 2014 17:22:57 -0700
On Sep 30, 2014, at 4:44 PM, Ateeth Kumar <ateethkumar@xxxxxxxxx> wrote:

> I used a system call in unix to run a process from wireshark toolbar. 
> 
> However during compilation time the gcc compiler treats all warnings as errors.

	...

> error: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Werror=unused-result]
>      system(p);
>            ^
> cc1: all warnings being treated as errors

You should be doing something with the return value of system(), such as checking it and reporting an error if it indicates that there was an error trying to run that process.