NetBSD 9.2/AArch64
clang version 13.0.0
./print-enc.c:103:8: error: variable 'caplen' set but not used
[-Werror,-Wunused-but-set-variable]
(cherry picked from commit
e1ee2a34a9e8dc5bdc1b69aae8c77f0a5b1ae23c)
const struct pcap_pkthdr *h, const u_char *p)
{
u_int length = h->len;
- u_int caplen = h->caplen;
u_int af, flags;
const struct enchdr *hdr;
ND_PRINT("SPI 0x%08x: ", GET_BE_U_4(hdr->spi));
length -= ENC_HDRLEN;
- caplen -= ENC_HDRLEN;
p += ENC_HDRLEN;
switch (af) {