Project

General

Profile

Bug #11791

idm: this statement may fall through

Added by Toomas Soome 6 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with gcc 8:

    ../../common/io/idm/idm_conn_sm.c:1464:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
       switch (ic->ic_state) {
       ^~~~~~
    ../../common/io/idm/idm_conn_sm.c:1481:2: note: here
      case ISCSI_OP_SCSI_CMD:
      ^~~~
    ../../common/io/idm/idm_conn_sm.c:1491:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
       switch (ic->ic_state) {
       ^~~~~~
    ../../common/io/idm/idm_conn_sm.c:1507:2: note: here
      case ISCSI_OP_LOGOUT_CMD:
      ^~~~
    ../../common/io/idm/idm_conn_sm.c:1511:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
       switch (ic->ic_state) {
       ^~~~~~
    ../../common/io/idm/idm_conn_sm.c:1527:2: note: here
      case ISCSI_OP_LOGIN_CMD:
      ^~~~
    cc1: all warnings being treated as errors

Also available in: Atom PDF