]> The Tcpdump Group git mirrors - libpcap/blobdiff - gencode.c
Use __builtin_unreachable(). [skip ci]
[libpcap] / gencode.c
index 299d1c632ac79673f60253353575e39b23eadb64..07259a70c2813193e30a954a13e8a60001e36186 100644 (file)
--- 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 */
 }