diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2021-07-30 22:30:07 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2021-07-30 22:32:28 +0100 |
commit | 3f353962383e32c4a50b8cb951d48f9dbbd1a779 (patch) | |
tree | 093e0bc39d14207b2c856fe9273d140fd8e8c2b7 /gencode.c | |
parent | da4e466a8fe6e2806be296cc05c7dd7850fbec1d (diff) |
Squelch a few warnings on AIX. [skip appveyor]
See also tcpdump commit b7401ff.
* GCC 8.3.0 on AIX 7.1 and GCC 7.2.0 on AIX 7.2
./gencode.c: In function 'bpf_error':
./gencode.c:478:1: warning: 'noreturn' function does return
* GCC 8.3.0 on AIX 7.1
./optimize.c: In function 'opt_error':
./optimize.c:2424:1: warning: 'noreturn' function does return
./optimize.c: In function 'conv_error':
./optimize.c:2928:1: warning: 'noreturn' function does return
* XL C 12.1.0 on AIX 7.1 and XL C 13.1.3 on AIX 7.2:
"./nametoaddr.c", line 790.27: 1506-280 (W) Function argument assignment
between types "char*" and "const char*" is not allowed.
Diffstat (limited to 'gencode.c')
-rw-r--r-- | gencode.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -475,6 +475,12 @@ bpf_error(compiler_state_t *cstate, const char *fmt, ...) va_end(ap); longjmp(cstate->top_ctx, 1); /*NOTREACHED*/ +#ifdef _AIX + /* + * Same GCC workaround as in tcpdump. + */ + while (1); +#endif /* _AIX */ } static int init_linktype(compiler_state_t *, pcap_t *); |