Skip to content

gcc 7 fallthrough warnings #75200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stratakis mannequin opened this issue Jul 24, 2017 · 2 comments
Closed

gcc 7 fallthrough warnings #75200

stratakis mannequin opened this issue Jul 24, 2017 · 2 comments
Labels
3.7 (EOL) end of life

Comments

@stratakis
Copy link
Mannequin

stratakis mannequin commented Jul 24, 2017

BPO 31017
Nosy @zware, @stratakis
Superseder
  • bpo-30923: Add -Wimplicit-fallthrough=0 to Makefile ?
  • Files
  • fallthrough36
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-07-24.17:10:14.852>
    created_at = <Date 2017-07-24.17:07:49.484>
    labels = ['3.7']
    title = 'gcc 7 fallthrough warnings'
    updated_at = <Date 2017-07-24.17:10:14.850>
    user = 'https://github.com/stratakis'

    bugs.python.org fields:

    activity = <Date 2017-07-24.17:10:14.850>
    actor = 'zach.ware'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-07-24.17:10:14.852>
    closer = 'zach.ware'
    components = []
    creation = <Date 2017-07-24.17:07:49.484>
    creator = 'cstratak'
    dependencies = []
    files = ['47039']
    hgrepos = []
    issue_num = 31017
    keywords = []
    message_count = 2.0
    messages = ['298996', '298997']
    nosy_count = 2.0
    nosy_names = ['zach.ware', 'cstratak']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '30923'
    type = None
    url = 'https://bugs.python.org/issue31017'
    versions = ['Python 3.7']

    @stratakis
    Copy link
    Mannequin Author

    stratakis mannequin commented Jul 24, 2017

    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/

    @stratakis stratakis mannequin added the 3.7 (EOL) end of life label Jul 24, 2017
    @zware
    Copy link
    Member

    zware commented Jul 24, 2017

    This is a duplicate of bpo-30923.

    @zware zware closed this as completed Jul 24, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant