]> 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]>
Tue, 3 Aug 2021 23:45:45 +0000 (00:45 +0100)
commit51f9c3b947eac89254c4e3662902487e0844a699
treee724fe41d37199ceb77a823fd3da1dc3476a8d13
parentbbeedf4f477ff85a0563ae514517798e1022c3ff
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]
build.sh
interface.h
tcpdump.c