From c6fde3d1975ecda5563c39712ff389e78e50b895 Mon Sep 17 00:00:00 2001 From: Joerg Mayer Date: Wed, 28 Mar 2018 15:32:06 -0700 Subject: 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 --- gencode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gencode.h') 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); -- cgit v1.2.1