• Home
  • Raw
  • Download

Lines Matching +full:unused +full:- +full:but +full:- +full:set +full:- +full:variable

1 #!/bin/sh -e
13 if [ -z "$PREFIX" ]; then
15 echo "PREFIX set to '$PREFIX'"
21 # The norm is to compile without any warnings, but libpcap builds on some OSes
22 # are not warning-free for one or another reason. If you manage to fix one of
27 gcc-*/Linux-*)
28 # This warning is a bit odd. It is steadily present in Cirrus CI, but not
30 # as Cirrus CI it reproduces only if GCC receives the "-g" flag:
31 # make CFLAGS=-g -- does not reproduce
32 # CFLAGS=-g make -- reproduces
33 # make -- reproduces
35 # pcap-linux.c:947:8: warning: ignoring return value of 'write', declared
36 # with attribute warn_unused_result [-Wunused-result]
39 # reported the warning and has received the "-Werror" flag. So let's keep
40 # this block no-op for now.
42 clang-*/NetBSD-*)
43 # pcap-bpf.c:1044:18: warning: implicit conversion loses integer precision:
45 # [-Wshorten-64-to-32]
46 # pcap-bpf.c:1045:18: warning: implicit conversion loses integer precision:
48 # [-Wshorten-64-to-32]
49 # pcap-bpf.c:1274:39: warning: implicit conversion loses integer precision:
50 # 'long' to 'suseconds_t' (aka 'int') [-Wshorten-64-to-32]
53 clang-15.*/*)
54 # grammar.c:1369:14: warning: variable 'pcap_nerrs' set but not used
55 # [-Wunused-but-set-variable]
58 clang-*/SunOS-5.11)
60 # pcap-bpf.c:1044:18: warning: implicit conversion loses integer precision:
62 # [-Wshorten-64-to-32]
63 # pcap-bpf.c:1045:18: warning: implicit conversion loses integer precision:
65 # [-Wshorten-64-to-32]
66 # fad-getad.c:266:52: warning: implicit conversion loses integer precision:
68 # [-Wshorten-64-to-32]
70 # pcap-bpf.c:1843:22: warning: implicit conversion loses integer precision:
71 # 'long' to 'int' [-Wshorten-64-to-32]
74 # [-Wstrict-prototypes]
75 [ "`uname -p`" = i386 ] && LIBPCAP_TAINTED=yes
77 suncc-5.1[45]/SunOS-5.11)
86 */Haiku-*)
88 # pcap-haiku.cpp:55:21: warning: unused variable 'handlep' [-Wunused-variable]
89 # pcap-haiku.cpp:50:37: warning: unused parameter 'maxPackets' [-Wunused-parameter]
90 # pcap-haiku.cpp:111:47: warning: unused parameter 'buffer' [-Wunused-parameter]
91 # pcap-haiku.cpp:111:59: warning: unused parameter 'size' [-Wunused-parameter]
92 # pcap-haiku.cpp:268:26: warning: unused parameter 'name' [-Wunused-parameter]
93 # pcap-haiku.cpp:274:26: warning: unused parameter 'name' [-Wunused-parameter]
94 # pcap-haiku.cpp:274:58: warning: unused parameter 'errbuf' [-Wunused-parameter]
100 # result in an unaligned pointer value [-Waddress-of-packed-member]
103 # result in an unaligned pointer value [-Waddress-of-packed-member]
106 # result in an unaligned pointer value [-Waddress-of-packed-member]
109 # result in an unaligned pointer value [-Waddress-of-packed-member]
116 run_after_echo ./configure --prefix="$PREFIX" --enable-remote="$REMOTE"
118 # Remove the leftovers from any earlier in-source builds, so this
119 # out-of-source build does not break because of that.
120 # https://gitlab.kitware.com/cmake/community/-/wikis/FAQ#what-is-an-out-of-source-build
122 # can fail subsequent build attempts too, sometimes in non-obvious ways,
124 run_after_echo rm -rf CMakeFiles/ CMakeCache.txt build/
127 run_after_echo cmake ${CFLAGS:+-DEXTRA_CFLAGS="$CFLAGS"} \
128 -DCMAKE_INSTALL_PREFIX="$PREFIX" -DENABLE_REMOTE="$REMOTE" ..
130 run_after_echo "$MAKE_BIN" -s clean
132 run_after_echo "$MAKE_BIN" -s ${CFLAGS:+CFLAGS="$CFLAGS"}
133 run_after_echo "$MAKE_BIN" -s testprogs ${CFLAGS:+CFLAGS="$CFLAGS"}
135 # The "-s" flag is a no-op and CFLAGS is set using -DEXTRA_CFLAGS above.
150 run_after_echo rm -rf "$PREFIX"
152 # vi: set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab autoindent :