From: Willy Tarreau Date: Mon, 14 Nov 2022 06:09:39 +0000 (+0100) Subject: BUILD: stream: use __fallthrough in stats_dump_full_strm_to_buffer() X-Git-Tag: v2.7-dev9~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=469847945c8254495f26d0ce0733f3e560ad833e;p=thirdparty%2Fhaproxy.git BUILD: stream: use __fallthrough in stats_dump_full_strm_to_buffer() This avoids 1 build warning when preprocessing happens before compiling with gcc >= 7. --- diff --git a/src/stream.c b/src/stream.c index f45f535110..59d84b921f 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);