libtest: fix implicit-fallthrough warnings with GCC 7

This commit is contained in:
Marcel Raad 2017-06-03 20:12:23 +02:00
parent 15136a5268
commit 0932573e7c
No known key found for this signature in database
GPG Key ID: B4668817AE6D6CD4
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;