]> The Tcpdump Group git mirrors - tcpdump/commit
Squelch a warning with Capsicum enabled. [skip appveyor]
authorDenis Ovsienko <[email protected]>
Tue, 3 Aug 2021 22:38:48 +0000 (23:38 +0100)
committerDenis Ovsienko <[email protected]>
Wed, 29 Sep 2021 14:09:13 +0000 (15:09 +0100)
commit7e1c13f72eda83f50f26cb2fa901dcb35c7eafb1
tree6ca2f58be433f523eba819843e5e20745df69fe6
parent5c70a5fc1f92a50250028fed6040628998b7fc8f
Squelch a warning with Capsicum enabled. [skip appveyor]

The Capsicum workaround I added in commit 706c79e causes a side effect
on FreeBSD 11.4, 12.2 and 13.0 with local libpcap when Capsicum is
enabled, that is, in CMake builds (Capsicum detection is broken in
Autoconf builds, as it turns out).  Add a workaround for the side effect
as well and get rid of another warning and respective exemption:

tcpdump.c:2286:3: warning: implicit declaration of function 'bpf_dump'
  is invalid in C99 [-Wimplicit-function-declaration]

(cherry picked from commit 51f9c3b947eac89254c4e3662902487e0844a699)
build.sh
interface.h
tcpdump.c