From: Marcel Raad Date: Sat, 3 Jun 2017 18:12:23 +0000 (+0200) Subject: libtest: fix implicit-fallthrough warnings with GCC 7 X-Git-Tag: curl-7_54_1~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0932573e7cf83e3dd8037a318fa166b127e4d9a5;p=curl libtest: fix implicit-fallthrough warnings with GCC 7 --- diff --git a/tests/libtest/lib552.c b/tests/libtest/lib552.c index c1266c763..3a93dafaf 100644 --- a/tests/libtest/lib552.c +++ b/tests/libtest/lib552.c @@ -92,6 +92,7 @@ int my_trace(CURL *handle, curl_infotype type, switch(type) { case CURLINFO_TEXT: fprintf(stderr, "== Info: %s", (char *)data); + /* FALLTHROUGH */ default: /* in case a new one is introduced to shock us */ return 0; diff --git a/tests/libtest/testtrace.c b/tests/libtest/testtrace.c index 5eeeeb65d..62641e15c 100644 --- a/tests/libtest/testtrace.c +++ b/tests/libtest/testtrace.c @@ -113,6 +113,7 @@ int libtest_debug_cb(CURL *handle, curl_infotype type, switch(type) { case CURLINFO_TEXT: fprintf(stderr, "%s== Info: %s", timestr, (char *)data); + /* FALLTHROUGH */ default: /* in case a new one is introduced to shock us */ return 0;