]> granicus.if.org Git - curl/commitdiff
examples: fix Wimplicit-fallthrough warnings
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 24 May 2017 09:56:38 +0000 (11:56 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 24 May 2017 09:56:38 +0000 (11:56 +0200)
This is contained in -Wextra with GCC 7.

docs/examples/debug.c
docs/examples/http2-download.c
docs/examples/http2-serverpush.c
docs/examples/http2-upload.c
docs/examples/multi-debugcallback.c

index cbf1c1106660264bc1769fd39cbe0b3e07c622a3..e8a87ea4c45f4ddf0d690b5652b1af564274b907 100644 (file)
@@ -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;
 
index 8c0b0876e2fc4641b77652d991b7942a4ea6b29c..8e28eaa7331ff9a3423285dd998ba54e8cc85d80 100644 (file)
@@ -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;
 
index 5aae6afdc1a932e8b777f9d63232681e25384445..b497e76a9afa22963481cb01a96e3a933b54c44b 100644 (file)
@@ -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;
 
index 01dfc0b3d2eeb001c27d9e662cf21d75675ad6a5..43809ab69f74149a9615434964699d85a81cec69 100644 (file)
@@ -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;
 
index be241fc72bd854cb4d3003285397f85c456eea24..07f044b4ea53ba8347ef271d1ead721e5ea92af2 100644 (file)
@@ -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;