Project

General

Profile

Bug #9241

si3124: this statement may fall through

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2018-03-06
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

Issue found by gcc 7 build:

    ../../common/sys/sata/adapters/si3124/si3124var.h:274:5: error: this statement may fall through [-Werror=implicit-fallthrough=]
      if (si_debug_flags & (flag)) { \
         ^
    ../../common/io/sata/adapters/si3124/si3124.c:1835:3: note: in expansion of macro 'SIDBG_P'
       SIDBG_P(SIDBG_RESET, si_portp,
       ^~~~~~~
    ../../common/io/sata/adapters/si3124/si3124.c:1839:2: note: here
      default:
      ^~~~~~~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk over 1 year ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 7b839a17b133f5f15cfee0a4f16c5c8445d7fa25

commit  7b839a17b133f5f15cfee0a4f16c5c8445d7fa25
Author: Toomas Soome <tsoome@me.com>
Date:   2018-04-23T16:15:40.000Z

    9241 si3124: this statement may fall through
    Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF