mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
examples: fix Wimplicit-fallthrough warnings
This is contained in -Wextra with GCC 7.
This commit is contained in:
parent
df45f2c33e
commit
b4d87f54d6
@ -91,6 +91,7 @@ int my_trace(CURL *handle, curl_infotype type,
|
|||||||
switch(type) {
|
switch(type) {
|
||||||
case CURLINFO_TEXT:
|
case CURLINFO_TEXT:
|
||||||
fprintf(stderr, "== Info: %s", data);
|
fprintf(stderr, "== Info: %s", data);
|
||||||
|
/* FALLTHROUGH */
|
||||||
default: /* in case a new one is introduced to shock us */
|
default: /* in case a new one is introduced to shock us */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -117,6 +117,7 @@ int my_trace(CURL *handle, curl_infotype type,
|
|||||||
switch(type) {
|
switch(type) {
|
||||||
case CURLINFO_TEXT:
|
case CURLINFO_TEXT:
|
||||||
fprintf(stderr, "== %d Info: %s", num, data);
|
fprintf(stderr, "== %d Info: %s", num, data);
|
||||||
|
/* FALLTHROUGH */
|
||||||
default: /* in case a new one is introduced to shock us */
|
default: /* in case a new one is introduced to shock us */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -96,6 +96,7 @@ int my_trace(CURL *handle, curl_infotype type,
|
|||||||
switch(type) {
|
switch(type) {
|
||||||
case CURLINFO_TEXT:
|
case CURLINFO_TEXT:
|
||||||
fprintf(stderr, "== Info: %s", data);
|
fprintf(stderr, "== Info: %s", data);
|
||||||
|
/* FALLTHROUGH */
|
||||||
default: /* in case a new one is introduced to shock us */
|
default: /* in case a new one is introduced to shock us */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -136,6 +136,7 @@ int my_trace(CURL *handle, curl_infotype type,
|
|||||||
switch(type) {
|
switch(type) {
|
||||||
case CURLINFO_TEXT:
|
case CURLINFO_TEXT:
|
||||||
fprintf(stderr, "%s [%d] Info: %s", timebuf, num, data);
|
fprintf(stderr, "%s [%d] Info: %s", timebuf, num, data);
|
||||||
|
/* FALLTHROUGH */
|
||||||
default: /* in case a new one is introduced to shock us */
|
default: /* in case a new one is introduced to shock us */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -99,6 +99,7 @@ int my_trace(CURL *handle, curl_infotype type,
|
|||||||
switch(type) {
|
switch(type) {
|
||||||
case CURLINFO_TEXT:
|
case CURLINFO_TEXT:
|
||||||
fprintf(stderr, "== Info: %s", data);
|
fprintf(stderr, "== Info: %s", data);
|
||||||
|
/* FALLTHROUGH */
|
||||||
default: /* in case a new one is introduced to shock us */
|
default: /* in case a new one is introduced to shock us */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user