libiscsi: Port to gcc 7

Avoid that building with gcc 7 fails as follows:

iscsi-dd.c: In function 'cscd_ident_inq':
iscsi-dd.c:405:8: error: this statement may fall through [-Werror=implicit-fallthrough=]
     if (prev_type <= desig->designator_type) {
        ^
iscsi-dd.c:409:4: note: here
    default:
    ^~~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
This commit is contained in:
Bart Van Assche
2017-10-30 16:57:59 -07:00
parent 7e459df828
commit 3cd40965a0

View File

@@ -406,6 +406,7 @@ void cscd_ident_inq(struct iscsi_context *iscsi,
tgt_desig = desig;
prev_type = desig->designator_type;
}
/* fall through */
default:
continue;
}