summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh30
1 files changed, 10 insertions, 20 deletions
diff --git a/build.sh b/build.sh
index 956cfe2f..d00bb500 100755
--- a/build.sh
+++ b/build.sh
@@ -54,11 +54,6 @@ clang-*/NetBSD-*)
# 'long' to 'suseconds_t' (aka 'int') [-Wshorten-64-to-32]
LIBPCAP_TAINTED=yes
;;
-clang-15.*/*)
- # grammar.c:1369:14: warning: variable 'pcap_nerrs' set but not used
- # [-Wunused-but-set-variable]
- LIBPCAP_TAINTED=yes
- ;;
clang-*/SunOS-5.11)
# (Solaris 11 and OpenIndiana)
# pcap-bpf.c:1044:18: warning: implicit conversion loses integer precision:
@@ -87,21 +82,16 @@ suncc-5.1[45]/SunOS-5.11)
# "./filtertest.c", line 281: warning: statement not reached
LIBPCAP_TAINTED=yes
;;
-*/Haiku-*)
- # (The warnings below come from GCC and Clang in CMake builds after installing
- # all system updates.)
- # gencode.c:4143:9: warning: converting a packed 'struct in6_addr' pointer
- # (alignment 1) to a 'uint32_t' {aka 'unsigned int'} pointer (alignment 4) may
- # result in an unaligned pointer value [-Waddress-of-packed-member]
- # gencode.c:4144:9: warning: converting a packed 'struct in6_addr' pointer
- # (alignment 1) to a 'uint32_t' {aka 'unsigned int'} pointer (alignment 4) may
- # result in an unaligned pointer value [-Waddress-of-packed-member]
- # gencode.c:7189:9: warning: converting a packed 'struct in6_addr' pointer
- # (alignment 1) to a 'uint32_t' {aka 'unsigned int'} pointer (alignment 4) may
- # result in an unaligned pointer value [-Waddress-of-packed-member]
- # gencode.c:7190:9: warning: converting a packed 'struct in6_addr' pointer
- # (alignment 1) to a 'uint32_t' {aka 'unsigned int'} pointer (alignment 4) may
- # result in an unaligned pointer value [-Waddress-of-packed-member]
+clang-*/Haiku-*)
+ # pcap-haiku.c:82:26: error: implicit conversion loses integer precision:
+ # 'ssize_t' (aka 'long') to 'int32_t' (aka 'int')
+ # [-Werror,-Wshorten-64-to-32]
+ # pcap-haiku.c:88:51: error: implicit conversion loses integer precision:
+ # 'ssize_t' (aka 'long') to 'u_int' (aka 'unsigned int')
+ # [-Werror,-Wshorten-64-to-32]
+ # pcap-haiku.c:98:15: error: implicit conversion loses integer precision:
+ # 'ssize_t' (aka 'long') to 'bpf_u_int32' (aka 'unsigned int')
+ # [-Werror,-Wshorten-64-to-32]
LIBPCAP_TAINTED=yes
;;
esac