diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2021-08-06 23:37:23 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2021-08-06 23:37:23 +0100 |
commit | 2da4f30307287acca1ae7af969f883a12d423bea (patch) | |
tree | 09217575d5043920be06eaa0bb967a9cf8d3abf1 /gencode.c | |
parent | bc2cd46de5140ac70ba679173d682896913d6644 (diff) |
Use __builtin_unreachable(). [skip ci]
Refine the changes made in commit 3f35396 and use a macro with comments.
Diffstat (limited to 'gencode.c')
-rw-r--r-- | gencode.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -77,6 +77,7 @@ #include "pcap/sll.h" #include "pcap/ipnet.h" #include "arcnet.h" +#include "diag-control.h" #include "grammar.h" #include "scanner.h" @@ -476,10 +477,7 @@ bpf_error(compiler_state_t *cstate, const char *fmt, ...) longjmp(cstate->top_ctx, 1); /*NOTREACHED*/ #ifdef _AIX - /* - * Same GCC workaround as in tcpdump. - */ - while (1); + PCAP_UNREACHABLE #endif /* _AIX */ } |