]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: h1_htx: use __fallthrough in h1_parse_chunk()
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 06:32:50 +0000 (07:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 10:14:02 +0000 (11:14 +0100)
This avoids one build warning when preprocessing happens before compiling
with gcc >= 7.

src/h1_htx.c

index a4048c0fbb278609b3ab6ea5d1cb3ea6d7defff6..75f9dca9d3b2ab5c2e350124c1319f50dafbafd5 100644 (file)
@@ -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));