Address the warning below (specific to a few versions of Clang, CMake
and FreeBSD) and update the exemption rule comment in build.sh.
tcpdump.c:244:16: warning: no previous extern declaration for non-static
variable 'capdns' [-Wmissing-variable-declarations]
static uint32_t f_netmask;
static uint32_t f_localnet;
#ifdef HAVE_CASPER
-extern cap_channel_t *capdns;
+cap_channel_t *capdns;
#endif
/*
#include "extract.h"
+#ifdef HAVE_CASPER
+#include <libcasper.h>
+extern cap_channel_t *capdns;
+#endif
+
/*
* Definition to let us compile most of the IPv6 code even on systems
* without IPv6 support.
# [-Werror,-Wc11-extensions]
# tcpdump.c:2443:9: error: '_Generic' is a C11 extension
# [-Werror,-Wc11-extensions]
- # tcpdump.c:244:16: error: no previous extern declaration for non-static variable
- # 'capdns' [-Werror,-Wmissing-variable-declarations]
TCPDUMP_TAINTED=yes
;;
esac
char *program_name;
-#ifdef HAVE_CASPER
-cap_channel_t *capdns;
-#endif
-
/* Forwards */
static void (*setsignal (int sig, void (*func)(int)))(int);
static void cleanup(int);