diff options
author | Joerg Mayer <jmayer@loplof.de> | 2018-03-28 15:32:06 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-03-28 15:32:06 -0700 |
commit | c6fde3d1975ecda5563c39712ff389e78e50b895 (patch) | |
tree | 69ef031108c6cc1a38144859da1ba74980538651 /gencode.h | |
parent | fd00db6f5f21d4961b62fbdd79944135b0b2a6bb (diff) |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |