diff options
author | 2017-09-28 14:47:53 +0900 | |
---|---|---|
committer | 2017-09-28 14:47:53 +0900 | |
commit | 59373a4e03e273841c6c3b7fc9ac29c0a3e90c6d (patch) | |
tree | 68bf3a94d919657469c3fdb7ad2204761571c9bf /http.c | |
parent | Merge branch 'jk/diff-blob' (diff) | |
parent | consistently use "fallthrough" comments in switches (diff) | |
download | tgif-59373a4e03e273841c6c3b7fc9ac29c0a3e90c6d.tar.xz |
Merge branch 'jk/fallthrough'
Many codepaths have been updated to squelch -Wimplicit-fallthrough
warnings from Gcc 7 (which is a good code hygiene).
* jk/fallthrough:
consistently use "fallthrough" comments in switches
curl_trace(): eliminate switch fallthrough
test-line-buffer: simplify command parsing
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -638,9 +638,7 @@ static int curl_trace(CURL *handle, curl_infotype type, char *data, size_t size, switch (type) { case CURLINFO_TEXT: trace_printf_key(&trace_curl, "== Info: %s", data); - default: /* we ignore unknown types by default */ - return 0; - + break; case CURLINFO_HEADER_OUT: text = "=> Send header"; curl_dump_header(text, (unsigned char *)data, size, DO_FILTER); @@ -665,6 +663,9 @@ static int curl_trace(CURL *handle, curl_infotype type, char *data, size_t size, text = "<= Recv SSL data"; curl_dump_data(text, (unsigned char *)data, size); break; + + default: /* we ignore unknown types by default */ + return 0; } return 0; } |