build: fix gcc7 implicit fallthrough warnings

Mark intended fallthroughs with /* FALLTHROUGH */ so that gcc will know
it's expected and won't warn on [-Wimplicit-fallthrough=].

Closes https://github.com/curl/curl/pull/1297
This commit is contained in:
Alexis La Goutte 2017-02-28 22:45:28 +01:00 committed by Jay Satiro
parent 6fc91f6d3a
commit cbff751e95
4 changed files with 4 additions and 0 deletions

View file

@ -185,6 +185,7 @@ int tool_debug_cb(CURL *handle, curl_infotype type,
switch(type) {
case CURLINFO_TEXT:
fprintf(output, "%s== Info: %s", timebuf, data);
/* FALLTHROUGH */
default: /* in case a new one is introduced to shock us */
return 0;