]> The Tcpdump Group git mirrors - libpcap/commitdiff
Declare stuff volatile when used around setjmp/longjmp.
authorGuy Harris <[email protected]>
Fri, 8 Feb 2019 00:21:48 +0000 (16:21 -0800)
committerGuy Harris <[email protected]>
Fri, 8 Feb 2019 00:21:48 +0000 (16:21 -0800)
gencode.c

index 9505cd8a1257f1fc5cb73d600f3d481a3e19a047..0841fb86aa4da8d923c7a42ee5360b9032dc209d 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -9009,7 +9009,7 @@ struct block *
 gen_mpls(compiler_state_t *cstate, bpf_u_int32 label_num_arg,
     int has_label_num)
 {
-       bpf_u_int32 label_num = label_num_arg;
+       volatile bpf_u_int32 label_num = label_num_arg;
        struct  block   *b0, *b1;
 
        /*
@@ -9786,7 +9786,7 @@ struct block *
 gen_mtp3field_code(compiler_state_t *cstate, int mtp3field,
     bpf_u_int32 jvalue_arg, int jtype, int reverse)
 {
-       bpf_u_int32 jvalue = jvalue_arg;
+       volatile bpf_u_int32 jvalue = jvalue_arg;
        struct block *b0;
        bpf_u_int32 val1 , val2 , val3;
        u_int newoff_sio;