tcpdump mailing list archives
Re: -W options to gcc
From: François-Xavier Le Bail <fx.lebail () yahoo com>
Date: Tue, 2 Apr 2013 05:32:35 -0700 (PDT)
About warnings and gcc specifics, II tried the gcc option -pedantic and I got (among others): [...] ./print-olsr.c:197: warning: ISO C90 does not support the '%lf' gnu_printf format [...] ./print-rx.c:856: warning: ISO C90 does not support the '%T' gnu_strftime format [...] ./tcpdump.c:1217:27: warning: C++ style comments are not allowed in ISO C90 ./tcpdump.c:1217:27: warning: (this will be reported only once per input file) [...] Perhaps portability problems ... Francois-Xavier ----- Original Message -----
On Mar 28, 2013, at 4:41 PM, Michael Richardson <mcr () sandelman ca> wrote:"Guy" == Guy Harris <guy () alum mit edu>writes:Guy> Wireshark's configure script checks whether the GCC shell Guy> variable is "yes" or the CC shell variable is"clang" and, ifGuy> true, sets a flag saying "this compiler supports -Woptions".Cooll.. can we copy and paste :-)Wireshark's configuration scripts are GPLed, along with the rest of Wireshark, so, in principle, that might be a problem. I didn't originally write that macro, so I can't just relicense it. I don't know whether anybody'd care, however. (I've moved stuff of mine between Wireshark and tcpdump/libpcap configure scripts in the past.)
_______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- Re: -W options to gcc François-Xavier Le Bail (Apr 02)
- <Possible follow-ups>
- Re: -W options to gcc Guy Harris (May 07)