From: Petr Štetiar Date: Tue, 8 Dec 2020 16:37:52 +0000 (+0100) Subject: uclient-fetch: fix statement may fallt hrough X-Git-Url: http://git.openwrt.org/?p=project%2Fuclient.git;a=commitdiff_plain;h=66b4420856a7eb2c5a9f9a7acdb7e796ed807b17 uclient-fetch: fix statement may fallt hrough Fixes following issue reported by clang-12 static analyzer: uclient-fetch.c:228:6: error: this statement may fall through [-Werror=implicit-fallthrough=] if (sscanf(blobmsg_get_string(tb[H_RANGE]), ^ uclient-fetch.c:236:2: note: here case 204: ^~~~ Signed-off-by: Petr Štetiar --- diff --git a/uclient-fetch.c b/uclient-fetch.c index 5f7ac62..0c7a123 100644 --- a/uclient-fetch.c +++ b/uclient-fetch.c @@ -233,6 +233,7 @@ static void header_done_cb(struct uclient *cl) error_ret = 8; break; } + /* fall through */ case 204: case 200: if (no_output)