Skip to content

gcc 7 fallthrough warnings #75200

Description

@stratakis
mannequin
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']

    Activity

    1. stratakis commented on Jul 24, 2017

      stratakismannequin
      MannequinAuthor

      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/

    2. zware commented on Jul 24, 2017

      @zware
      Member

      This is a duplicate of bpo-30923.

    3. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions