Wireshark mailing list archives
Re: Error in Wireshark (tshark.c:646)
From: Pascal Quantin <pascal.quantin () gmail com>
Date: Thu, 20 Apr 2017 14:03:37 +0200
Hi Rémy, 2017-04-20 13:57 GMT+02:00 Remy Leone <remy.leone () inria fr>:
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 <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Error in Wireshark (tshark.c:646) Remy Leone (Apr 20)
- Re: Error in Wireshark (tshark.c:646) Pascal Quantin (Apr 20)
- Re: Error in Wireshark (tshark.c:646) Pascal Quantin (Apr 20)
- Re: Error in Wireshark (tshark.c:646) Guy Harris (Apr 20)
- Re: Error in Wireshark (tshark.c:646) Guy Harris (Apr 20)
- Re: Error in Wireshark (tshark.c:646) Pascal Quantin (Apr 20)
- Re: Error in Wireshark (tshark.c:646) Graham Bloice (Apr 20)
- Re: Error in Wireshark (tshark.c:646) Jeff Morriss (Apr 20)
- Re: Error in Wireshark (tshark.c:646) Pascal Quantin (Apr 20)