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

src/ssl_sock.c

index 8dba5010a2ae7ead78871321c4cd58ba1a9c33fe..187e190b225b1d1f7bea3123aae0412e314f5af1 100644 (file)
@@ -7390,7 +7390,7 @@ static int cli_io_handler_tlskeys_files(struct appctx *appctx)
                        ctx->next_ref = tlskeys_list_get_next(&tlskeys_reference, &tlskeys_reference);
 
                ctx->state = SHOW_KEYS_LIST;
-               /* fall through */
+               __fallthrough;
 
        case SHOW_KEYS_LIST:
                while (ctx->next_ref) {
@@ -7458,7 +7458,7 @@ static int cli_io_handler_tlskeys_files(struct appctx *appctx)
                        ctx->next_ref = tlskeys_list_get_next(&ref->list, &tlskeys_reference);
                }
                ctx->state = SHOW_KEYS_DONE;
-               /* fall through */
+               __fallthrough;
 
        default:
                return 1;