Menu

#616 tools/gendef compilation error with gcc 7

v1.0 (example)
closed-fixed
nobody
None
5
2017-06-15
2017-06-03
Michel Zou
No

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++;

...

Discussion

  • rubenvb

    rubenvb - 2017-06-04

    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
  • Ozkan Sezer

    Ozkan Sezer - 2017-06-15
    • status: open --> closed-fixed
     
  • Ozkan Sezer

    Ozkan Sezer - 2017-06-15

    No one seems to have applied any patch, therefore I applied b4416f
    and f9f2bd to master and to branches. Closing as fixed.

     

Log in to post a comment.