Wireshark mailing list archives

Re: Compiling wirehsark --treat all warnings as errors.


From: Guy Harris <guy () alum mit edu>
Date: Tue, 30 Sep 2014 17:22:57 -0700


On Sep 30, 2014, at 4:44 PM, Ateeth Kumar <ateethkumar () gmail com> 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 <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: