]> The Tcpdump Group git mirrors - libpcap/commitdiff
Mark gen_pf_XXX() as "noreturn" if we don't have PF support.
authorGuy Harris <[email protected]>
Thu, 29 Mar 2018 01:07:15 +0000 (18:07 -0700)
committerGuy Harris <[email protected]>
Thu, 29 Mar 2018 01:07:15 +0000 (18:07 -0700)
gencode.h

index f1bad215182f32f8bb0b42a412f45ff0f1afa69d..88def5a8ad280b6e54cf0296a640b420466d6147 100644 (file)
--- 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);