summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2017-02-28 22:45:28 +0100
committerJay Satiro <raysatiro@yahoo.com>2017-03-03 03:09:46 -0500
commitcbff751e9597b66a50b23491569865fe39682031 (patch)
tree2c0e41a225f8bc2bfa341a6ee5607fcc1dea2d41 /src
parent6fc91f6d3af1d9976cdba8e6d757d56b1c8d3b54 (diff)
downloadcurl-cbff751e9597b66a50b23491569865fe39682031.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/tool_cb_dbg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_cb_dbg.c b/src/tool_cb_dbg.c
index 8e81f1be3..f4252ad88 100644
--- a/src/tool_cb_dbg.c
+++ b/src/tool_cb_dbg.c
@@ -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;