[issue31017] gcc 7 fallthrough warnings

Charalampos Stratakis report at bugs.python.org
Mon Jul 24 13:07:49 EDT 2017


New submission from Charalampos Stratakis:

On gcc 7 the new -Wimplicit-fallthrough option was introduced which produces warnings about switch cases that can fall through.

The easiest way to silence these warnings is to add the comment /* Falls through. */ for those cases. More information here [0]

Attaching the stderr output from compilation from the master branch.

[0] https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/

----------
files: fallthrough36
messages: 298996
nosy: cstratak
priority: normal
severity: normal
status: open
title: gcc 7 fallthrough warnings
versions: Python 3.7
Added file: http://bugs.python.org/file47039/fallthrough36

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31017>
_______________________________________


More information about the Python-bugs-list mailing list