On Sep 30, 2014, at 4:44 PM, Ateeth Kumar <[email protected]> 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.
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <[email protected]>
Archives: http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:[email protected]?subject=unsubscribe