Skip to contentSkip to conversation

target: Suppress gcc 7 fallthrough warnings

PATCH Hannes Reinecke 1 participant 1 message Nov 2, 2017 SCSI target

lore
Share & tools
lore

Hannes Reinecke

author Reviewed-by
#0 lore raw
Quoted 10 lines · Bart Van Assche

Avoid that gcc 7 reports the following warning when building with W=1:

warning: this statement may fall through [-Wimplicit-fallthrough=]

Cc Nicholas Bellinger <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Mike Christie <[email protected]>
Cc Varun Prakash <[email protected]>
Quoted 6 lines
---
 drivers/target/iscsi/cxgbit/cxgbit_main.c | 1 +
 drivers/target/target_core_pr.c           | 2 ++
 drivers/target/target_core_transport.c    | 4 ++--
 3 files changed, 5 insertions(+), 2 deletions(-)

Cheers,

Hannes

Signature · 5 lines
Dr. Hannes Reinecke		               zSeries & Storage
[email protected]			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)