From: Marcel Raad Date: Wed, 24 May 2017 09:56:38 +0000 (+0200) Subject: examples: fix Wimplicit-fallthrough warnings X-Git-Tag: curl-7_54_1~84 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b4d87f54d60711e936fefae388d741b281eecdf0;p=thirdparty%2Fcurl.git examples: fix Wimplicit-fallthrough warnings This is contained in -Wextra with GCC 7. --- diff --git a/docs/examples/debug.c b/docs/examples/debug.c index cbf1c11066..e8a87ea4c4 100644 --- a/docs/examples/debug.c +++ b/docs/examples/debug.c @@ -91,6 +91,7 @@ int my_trace(CURL *handle, curl_infotype type, switch(type) { case CURLINFO_TEXT: fprintf(stderr, "== Info: %s", data); + /* FALLTHROUGH */ default: /* in case a new one is introduced to shock us */ return 0; diff --git a/docs/examples/http2-download.c b/docs/examples/http2-download.c index 8c0b0876e2..8e28eaa733 100644 --- a/docs/examples/http2-download.c +++ b/docs/examples/http2-download.c @@ -117,6 +117,7 @@ int my_trace(CURL *handle, curl_infotype type, switch(type) { case CURLINFO_TEXT: fprintf(stderr, "== %d Info: %s", num, data); + /* FALLTHROUGH */ default: /* in case a new one is introduced to shock us */ return 0; diff --git a/docs/examples/http2-serverpush.c b/docs/examples/http2-serverpush.c index 5aae6afdc1..b497e76a9a 100644 --- a/docs/examples/http2-serverpush.c +++ b/docs/examples/http2-serverpush.c @@ -96,6 +96,7 @@ int my_trace(CURL *handle, curl_infotype type, switch(type) { case CURLINFO_TEXT: fprintf(stderr, "== Info: %s", data); + /* FALLTHROUGH */ default: /* in case a new one is introduced to shock us */ return 0; diff --git a/docs/examples/http2-upload.c b/docs/examples/http2-upload.c index 01dfc0b3d2..43809ab69f 100644 --- a/docs/examples/http2-upload.c +++ b/docs/examples/http2-upload.c @@ -136,6 +136,7 @@ int my_trace(CURL *handle, curl_infotype type, switch(type) { case CURLINFO_TEXT: fprintf(stderr, "%s [%d] Info: %s", timebuf, num, data); + /* FALLTHROUGH */ default: /* in case a new one is introduced to shock us */ return 0; diff --git a/docs/examples/multi-debugcallback.c b/docs/examples/multi-debugcallback.c index be241fc72b..07f044b4ea 100644 --- a/docs/examples/multi-debugcallback.c +++ b/docs/examples/multi-debugcallback.c @@ -99,6 +99,7 @@ int my_trace(CURL *handle, curl_infotype type, switch(type) { case CURLINFO_TEXT: fprintf(stderr, "== Info: %s", data); + /* FALLTHROUGH */ default: /* in case a new one is introduced to shock us */ return 0;