summaryrefslogtreecommitdiff
path: root/gencode.h
diff options
context:
space:
mode:
authorJoerg Mayer <jmayer@loplof.de>2018-03-28 15:32:06 -0700
committerGuy Harris <guy@alum.mit.edu>2018-03-28 15:32:06 -0700
commitc6fde3d1975ecda5563c39712ff389e78e50b895 (patch)
tree69ef031108c6cc1a38144859da1ba74980538651 /gencode.h
parentfd00db6f5f21d4961b62fbdd79944135b0b2a6bb (diff)
downloadlibpcap-c6fde3d1975ecda5563c39712ff389e78e50b895.tar.gz
Add -Wmissing-noreturn to compiler warnings and fix all fixable warnings.
Also suppress the one non-fixable warning: build/scanner.c:5020:1: warning: function 'yy_fatal_error' could be declared with attribute 'noreturn' [-Wmissing-noreturn] Signed-off-by: Joerg Mayer <jmayer@loplof.de>
Diffstat (limited to 'gencode.h')
-rw-r--r--gencode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gencode.h b/gencode.h
index 58828ecd..f1bad215 100644
--- a/gencode.h
+++ b/gencode.h
@@ -369,7 +369,7 @@ struct icode {
};
void bpf_optimize(compiler_state_t *, struct icode *ic);
-void bpf_syntax_error(compiler_state_t *, const char *);
+void PCAP_NORETURN bpf_syntax_error(compiler_state_t *, const char *);
void PCAP_NORETURN bpf_error(compiler_state_t *, const char *, ...)
PCAP_PRINTFLIKE(2, 3);