]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix a "might be clobbered by longjmp" warning.
authorGuy Harris <[email protected]>
Sat, 22 Sep 2018 19:36:46 +0000 (12:36 -0700)
committerGuy Harris <[email protected]>
Sat, 22 Sep 2018 19:36:46 +0000 (12:36 -0700)
gencode.c

index 0f00641129bef10e41f6ab9302cf17c26ee9c296..9a2eb3c3102b94675562d859a17396f5c10803a0 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -662,7 +662,7 @@ pcap_compile(pcap_t *p, struct bpf_program *program,
        compiler_state_t cstate;
        const char * volatile xbuf = buf;
        yyscan_t scanner = NULL;
-       YY_BUFFER_STATE in_buffer = NULL;
+       volatile YY_BUFFER_STATE in_buffer = NULL;
        u_int len;
        int  rc;