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

src/proto_quic.c

index d4a5a13d702975e4a7ad980c56eb0c54148438f3..7267b67e7d198bd5f8106a40eb864a15b2e68ef8 100644 (file)
@@ -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;