diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2023-04-22 22:18:43 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2023-04-23 17:21:05 +0100 |
commit | 02b98a948dfb661c3e04fca91bd9485525d4198f (patch) | |
tree | ffbab0174b5071c2c7f037408e39d547cb780732 /build_common.sh | |
parent | ab3f6a677ba66a9679c6f3412f0320a5776842d0 (diff) |
Address a few compiler warnings on Haiku.
In gencode.c instead of casting pointer types copy the data to squelch 4
previously known warnings from GCC and Clang. (Oddly enough, Haiku is
the only OS that unconditionally puts a 32-bit array into the union
inside struct in6_addr, yet the only OS where these warnings appeared.)
In pcap.c add a temporary workaround for ioctl() to squelch two other
Clang warnings:
pcap.c:1619:6: error: missing field 'size' initializer
[-Werror,-Wmissing-field-initializers]
pcap.c:1638:6: error: missing field 'size' initializer
[-Werror,-Wmissing-field-initializers]
With these changes GCC builds are now warning-free, so in build.sh set
LIBPCAP_TAINTED for Clang only and update the comment to show the
current remaining warnings.
Diffstat (limited to 'build_common.sh')
0 files changed, 0 insertions, 0 deletions