From 3cd40965a09bcc8c440d685052ffefe5f52c98af Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 30 Oct 2017 16:57:59 -0700 Subject: [PATCH] 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 --- examples/iscsi-dd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/iscsi-dd.c b/examples/iscsi-dd.c index 2639eae..f02f22e 100644 --- a/examples/iscsi-dd.c +++ b/examples/iscsi-dd.c @@ -406,6 +406,7 @@ void cscd_ident_inq(struct iscsi_context *iscsi, tgt_desig = desig; prev_type = desig->designator_type; } + /* fall through */ default: continue; }