From a551f4fbfd7da1b3a0220189ba30d56275935883 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 14 Nov 2022 07:34:43 +0100 Subject: [PATCH] BUILD: ssl: use __fallthrough in cli_io_handler_tlskeys_files() This avoids two build warnings when preprocessing happens before compiling with gcc >= 7. --- src/ssl_sock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 8dba5010a2..187e190b22 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -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; -- 2.47.3