From 276d7b18bbe71d061544c2d2989330b38ce86df3 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 24 Jun 2017 18:25:40 +0200 Subject: [PATCH] hung-chang-dso-2100: Fix a gcc 7 compiler warning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../src/hardware/hung-chang-dso-2100/api.c: In function ‘config_commit’: ../src/hardware/hung-chang-dso-2100/api.c:562:9: warning: this statement may fall through [-Wimplicit-fallthrough=] state = 0x01; ~~~~~~^~~~~~ ../src/hardware/hung-chang-dso-2100/api.c:563:2: note: here default: ^~~~~~~ ../src/hardware/hung-chang-dso-2100/api.c:565:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (ret != SR_OK) ^ ../src/hardware/hung-chang-dso-2100/api.c:567:2: note: here case 0x01: ^~~~ --- src/hardware/hung-chang-dso-2100/api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hardware/hung-chang-dso-2100/api.c b/src/hardware/hung-chang-dso-2100/api.c index 56acd856..bad92c00 100644 --- a/src/hardware/hung-chang-dso-2100/api.c +++ b/src/hardware/hung-chang-dso-2100/api.c @@ -560,10 +560,12 @@ static int config_commit(const struct sr_dev_inst *sdi) break; case 0x00: state = 0x01; + /* Fallthrough */ default: ret = hung_chang_dso_2100_move_to(sdi, 1); if (ret != SR_OK) return ret; + /* Fallthrough */ case 0x01: hung_chang_dso_2100_write_mbox(sdi->conn, 4); }