Project

General

Profile

Actions

Bug #9242

closed

st: this statement may fall through

Added by Toomas Soome over 4 years ago. Updated almost 4 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

issue found by gcc 7 build:

    ../../common/io/scsi/targets/st.c:18498:16: error: this statement may fall through [-Werror=implicit-fallthrough=]
         reset_type = RESET_ALL;
    ../../common/io/scsi/targets/st.c:18499:4: note: here
        default:
        ^~~~~~~
    ../../common/io/scsi/targets/st.c: In function 'st_decode_sense':
    ../../common/io/scsi/targets/st.c:11207:8: error: this statement may fall through [-Werror=implicit-fallthrough=]
         if (ri->pkt_retry_cnt++ < st_retry_count) {
            ^
    ../../common/io/scsi/targets/st.c:11212:4: note: here
        default: /* FALLTHRU */
        ^~~~~~~
    ../../common/io/scsi/targets/st.c: In function 'st_set_state':
    ../../common/io/scsi/targets/st.c:12040:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
        if (new_lastop != ST_OP_NIL) {
           ^
    ../../common/io/scsi/targets/st.c:12043:3: note: here
       default:
       ^~~~~~~
    ../../common/io/scsi/targets/st.c: In function 'st_modesense':
    ../../common/io/scsi/targets/st.c:8164:6: error: this statement may fall through [-Werror=implicit-fallthrough=]
       if (un->un_dp->options & ST_MODE_SEL_COMP) {
          ^
    ../../common/io/scsi/targets/st.c:8185:2: note: here
      default: /* FALLTHROUGH */
      ^~~~~~~
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF