From cbff751e9597b66a50b23491569865fe39682031 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 28 Feb 2017 22:45:28 +0100 Subject: 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 --- src/tool_cb_dbg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3