gcc 7 introduced implicit-fallthrough warning to avoid passing through switch/case without break/return, treated as error here:
mingw-w64-v5.0.2/mingw-w64-tools/gendef/src/gendef.c:1034:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
case c_4: sz++;
...
Adding comments like in the attached patch makes GCC not emit the warning here.
This also fixes the same problem in genpeimg.
Last edit: rubenvb 2017-06-04
Thanks Ruben. Please apply.
Cheers,
Kai
Am 04.06.2017 10:44 schrieb "rubenvb" rubenvb@users.sf.net:
No one seems to have applied any patch, therefore I applied b4416f
and f9f2bd to master and to branches. Closing as fixed.