From: Willy Tarreau Date: Mon, 14 Nov 2022 06:34:43 +0000 (+0100) Subject: BUILD: ssl: use __fallthrough in cli_io_handler_tlskeys_files() X-Git-Tag: v2.7-dev9~94 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a551f4fbfd7da1b3a0220189ba30d56275935883;p=thirdparty%2Fhaproxy.git BUILD: ssl: use __fallthrough in cli_io_handler_tlskeys_files() This avoids two build warnings when preprocessing happens before compiling with gcc >= 7. --- 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;