From: Rebecca Cran Date: Sat, 16 Oct 2021 06:17:38 +0000 (-0600) Subject: engines/http.c: add fallthrough annotation to _curl_trace X-Git-Tag: fio-3.29~59 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d853907223ca610c85a81cfe238ffd93b97520e7;p=fio.git engines/http.c: add fallthrough annotation to _curl_trace To avoid the warning from clang "warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]" swap the "fall through" comment with the "fallthrough;" annotation from compiler.h. Since the second "fall through" comment isn't really a new fall-through, remove it. Signed-off-by: Rebecca Cran Link: https://lore.kernel.org/r/20211016061738.76654-1-rebecca@bsdio.com Signed-off-by: Jens Axboe --- diff --git a/engines/http.c b/engines/http.c index 7a61b132..35c44871 100644 --- a/engines/http.c +++ b/engines/http.c @@ -297,10 +297,9 @@ static int _curl_trace(CURL *handle, curl_infotype type, switch (type) { case CURLINFO_TEXT: fprintf(stderr, "== Info: %s", data); - /* fall through */ + fallthrough; default: case CURLINFO_SSL_DATA_OUT: - /* fall through */ case CURLINFO_SSL_DATA_IN: return 0;