From 469847945c8254495f26d0ce0733f3e560ad833e Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 14 Nov 2022 07:09:39 +0100 Subject: [PATCH] BUILD: stream: use __fallthrough in stats_dump_full_strm_to_buffer() This avoids 1 build warning when preprocessing happens before compiling with gcc >= 7. --- src/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream.c b/src/stream.c index f45f53511..59d84b921 100644 --- a/src/stream.c +++ b/src/stream.c @@ -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);