From: Guy Harris Date: Thu, 29 Mar 2018 01:07:15 +0000 (-0700) Subject: Mark gen_pf_XXX() as "noreturn" if we don't have PF support. X-Git-Tag: libpcap-1.9-bp~156 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/4e4149bbfdc11aba6486d46aed9a9685085f4936 Mark gen_pf_XXX() as "noreturn" if we don't have PF support. --- diff --git a/gencode.h b/gencode.h index f1bad215..88def5a8 100644 --- a/gencode.h +++ b/gencode.h @@ -343,11 +343,29 @@ struct block *gen_mtp2type_abbrev(compiler_state_t *, int type); struct block *gen_mtp3field_code(compiler_state_t *, int, bpf_u_int32, bpf_u_int32, int); +#ifndef HAVE_NET_PFVAR_H +PCAP_NORETURN +#endif struct block *gen_pf_ifname(compiler_state_t *, const char *); +#ifndef HAVE_NET_PFVAR_H +PCAP_NORETURN +#endif struct block *gen_pf_rnr(compiler_state_t *, int); +#ifndef HAVE_NET_PFVAR_H +PCAP_NORETURN +#endif struct block *gen_pf_srnr(compiler_state_t *, int); +#ifndef HAVE_NET_PFVAR_H +PCAP_NORETURN +#endif struct block *gen_pf_ruleset(compiler_state_t *, char *); +#ifndef HAVE_NET_PFVAR_H +PCAP_NORETURN +#endif struct block *gen_pf_reason(compiler_state_t *, int); +#ifndef HAVE_NET_PFVAR_H +PCAP_NORETURN +#endif struct block *gen_pf_action(compiler_state_t *, int); struct block *gen_p80211_type(compiler_state_t *, int, int);