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.