From: Willy Tarreau Date: Mon, 14 Nov 2022 06:32:50 +0000 (+0100) Subject: BUILD: h1_htx: use __fallthrough in h1_parse_chunk() X-Git-Tag: v2.7-dev9~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=779aa693d953d2bcf7f9abaa80f1fac90e4388b9;p=thirdparty%2Fhaproxy.git BUILD: h1_htx: use __fallthrough in h1_parse_chunk() This avoids one build warning when preprocessing happens before compiling with gcc >= 7. --- diff --git a/src/h1_htx.c b/src/h1_htx.c index a4048c0fbb..75f9dca9d3 100644 --- a/src/h1_htx.c +++ b/src/h1_htx.c @@ -520,7 +520,7 @@ static size_t h1_parse_chunk(struct h1m *h1m, struct htx **dsthtx, break; h1m->state = H1_MSG_CHUNK_CRLF; - /*fall through */ + __fallthrough; case H1_MSG_CHUNK_CRLF: ret = h1_skip_chunk_crlf(srcbuf, ofs, b_data(srcbuf));