aboutsummaryrefslogtreecommitdiff
path: root/gencode.c
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2021-08-06 23:37:23 +0100
committerDenis Ovsienko <denis@ovsienko.info>2021-08-06 23:37:23 +0100
commit2da4f30307287acca1ae7af969f883a12d423bea (patch)
tree09217575d5043920be06eaa0bb967a9cf8d3abf1 /gencode.c
parentbc2cd46de5140ac70ba679173d682896913d6644 (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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gencode.c b/gencode.c
index 299d1c63..07259a70 100644
--- a/gencode.c
+++ b/gencode.c
@@ -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 */
}