From: Willy Tarreau Date: Mon, 14 Nov 2022 06:02:00 +0000 (+0100) Subject: BUILD: quic: use __fallthrough in quic_connect_server() X-Git-Tag: v2.7-dev9~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c8b52f80a4aac08fd8fff0270effb0176ddc6bc;p=thirdparty%2Fhaproxy.git BUILD: quic: use __fallthrough in quic_connect_server() This avoids one build warning when preprocessing happens before compiling with gcc >= 7. --- 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;