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

src/stream.c

index f45f535110521a0a75ec578f95840bf6e60207cc..59d84b921f1243308692b24343ccaab8420810f8 100644 (file)
@@ -3239,7 +3239,7 @@ static int stats_dump_full_strm_to_buffer(struct stconn *sc, struct stream *strm
        case 0: /* main status of the stream */
                ctx->uid = strm->uniq_id;
                ctx->section = 1;
-               /* fall through */
+               __fallthrough;
 
        case 1:
                get_localtime(strm->logs.accept_date.tv_sec, &tm);