From 5c8b52f80a4aac08fd8fff0270effb0176ddc6bc Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 14 Nov 2022 07:02:00 +0100 Subject: [PATCH] BUILD: quic: use __fallthrough in quic_connect_server() This avoids one build warning when preprocessing happens before compiling with gcc >= 7. --- src/proto_quic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto_quic.c b/src/proto_quic.c index d4a5a13d70..7267b67e7d 100644 --- a/src/proto_quic.c +++ b/src/proto_quic.c @@ -367,7 +367,7 @@ int quic_connect_server(struct connection *conn, int flags) switch (src->opts & CO_SRC_TPROXY_MASK) { case CO_SRC_TPROXY_CLI: conn_set_private(conn); - /* fall through */ + __fallthrough; case CO_SRC_TPROXY_ADDR: flags = 3; break; -- 2.47.3