Hi Rémy,

2017-04-20 13:57 GMT+02:00 Remy Leone <[email protected]>:

> Hello,
>
> I've noticed that master broke recently:
> tshark.c:646:24: error: variable ‘exp_pdu_filename’ might be clobbered by
> ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
>    const char          *exp_pdu_filename = NULL;
>                         ^
> Is a fix on the way? How could this bug passed through CI ?
>

This kind of warnings is highly dependent on the compiler version used.
That's why it was not spotted so far, and why you are the first one to
report the issue (for example I'm using gcc 6.3.1 and I do not have this
warning).
Does replacing the line by the code below allows you to build?
const volatile char *exp_pdu_filename = NULL;

BR,
Pascal.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe

Reply via email to