mirror of
https://github.com/curl/curl.git
synced 2026-08-25 04:53:31 +03:00
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:
parent
6fc91f6d3a
commit
cbff751e95
4 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue