summaryrefslogtreecommitdiff
path: root/quote.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-09-28 14:47:53 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-28 14:47:53 +0900
commit59373a4e03e273841c6c3b7fc9ac29c0a3e90c6d (patch)
tree68bf3a94d919657469c3fdb7ad2204761571c9bf /quote.c
parentMerge branch 'jk/diff-blob' (diff)
parentconsistently use "fallthrough" comments in switches (diff)
downloadtgif-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 'quote.c')
-rw-r--r--quote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/quote.c b/quote.c
index 53b98a5b84..de2922ddd6 100644
--- a/quote.c
+++ b/quote.c
@@ -431,6 +431,7 @@ void tcl_quote_buf(struct strbuf *sb, const char *src)
case '{': case '}':
case '$': case '\\': case '"':
strbuf_addch(sb, '\\');
+ /* fallthrough */
default:
strbuf_addch(sb, c);
break;