Re: [tcpdump-workers] compiler warnings on AIX and Solaris

2021-07-25 Thread Denis Ovsienko via tcpdump-workers
--- Begin Message --- On Sat, 24 Jul 2021 10:55:19 -0700 Guy Harris wrote: [...] > If there's a way to force XL C to treat it as a hard error, we need > to update the AC_LBL_CHECK_UNKNOWN_WARNING_OPTION_ERROR autoconf > macro to set the compiler up to use it when testing whether compiler > optio

Re: [tcpdump-workers] compiler warnings on AIX and Solaris

2021-07-24 Thread Denis Ovsienko via tcpdump-workers
--- Begin Message --- [...] > So the only way to fix this is to turn off the warnings; change > 39f09d68ce7ebe9e229c9bf5209bfc30a8f51064 adds macros to disable and > re-enable -Wcast-qual and wraps the offending code in getopt_long.c > with those macros, so the problem should be fixed on Solaris 9

Re: [tcpdump-workers] compiler warnings on AIX and Solaris

2021-07-24 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Jul 23, 2021, at 4:11 PM, Denis Ovsienko via tcpdump-workers wrote: > As it turns out, on Solaris 9 it is impossible to compile current > tcpdump with CFLAGS=-Werror because missing/getopt_long.c yields a few > warnings (attached). As far as the current revisions of this

[tcpdump-workers] compiler warnings on AIX and Solaris

2021-07-23 Thread Denis Ovsienko via tcpdump-workers
--- Begin Message --- Hello list. As it turns out, on Solaris 9 it is impossible to compile current tcpdump with CFLAGS=-Werror because missing/getopt_long.c yields a few warnings (attached). As far as the current revisions of this file go in FreeBSD, NetBSD and OpenBSD, FreeBSD seems to be the cl