Hello,
6 patches that fix -Wimplicit-fallthrough in GCC 7 on master, by adding
__attribute__ ((fallthrough));
or break, as required.
Additionally, the patch fixes the same on maint-0.3.0, the warning is no longer present in master. 0001-Fix-implicit-fallthrough-warning-in-GCC-7-in-tor_gzi.patch
Please review, Andreas
Hello,
On 05/28/2017 11:01 PM, Andreas Stieger wrote:
__attribute__ ((fallthrough));
It turns out that this may not be as portable as I thought. Instead, the attached patch adds magic comments recognized by default -Wimplicit-fallthrough=3 or break, as required.
Andreas
On Sun, May 28, 2017 at 5:52 PM, Andreas Stieger astieger@suse.com wrote:
Hello,
On 05/28/2017 11:01 PM, Andreas Stieger wrote:
__attribute__ ((fallthrough));
It turns out that this may not be as portable as I thought. Instead, the attached patch adds magic comments recognized by default -Wimplicit-fallthrough=3 or break, as required.
Hi! I've applied this one to master, and opened https://trac.torproject.org/projects/tor/ticket/22446#no5 to track it.
yrs,