[PATCH uclient 05/12] uclient-fetch: fix statement may fallt hrough

Petr Štetiar ynezz at true.cz
Thu Dec 10 10:47:52 EST 2020


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 <ynezz at true.cz>
---
 uclient-fetch.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/uclient-fetch.c b/uclient-fetch.c
index 5f7ac6200bb8..0c7a1232f256 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)



More information about the openwrt-devel mailing list