From 0932573e7cf83e3dd8037a318fa166b127e4d9a5 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sat, 3 Jun 2017 20:12:23 +0200 Subject: libtest: fix implicit-fallthrough warnings with GCC 7 --- tests/libtest/lib552.c | 1 + tests/libtest/testtrace.c | 1 + 2 files changed, 2 insertions(+) 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; -- cgit v1.2.3