From: Willy Tarreau Date: Mon, 14 Nov 2022 06:03:16 +0000 (+0100) Subject: BUILD: ssl/crt-list: use __fallthrough in cli_io_handler_add_crtlist() X-Git-Tag: v2.7-dev9~96 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aef8448b58e8201585cbe1c1dd43acccadda5346;p=thirdparty%2Fhaproxy.git BUILD: ssl/crt-list: use __fallthrough in cli_io_handler_add_crtlist() This avoids 3 build warnings when preprocessing happens before compiling with gcc >= 7. --- diff --git a/src/ssl_crtlist.c b/src/ssl_crtlist.c index a8cd240441..b5979bdf31 100644 --- a/src/ssl_crtlist.c +++ b/src/ssl_crtlist.c @@ -1088,7 +1088,7 @@ static int cli_io_handler_add_crtlist(struct appctx *appctx) if (applet_putchk(appctx, &trash) == -1) goto yield; ctx->state = ADDCRT_ST_GEN; - /* fallthrough */ + __fallthrough; case ADDCRT_ST_GEN: bind_conf_node = ctx->bind_conf_node; /* get the previous ptr from the yield */ if (bind_conf_node == NULL) @@ -1136,7 +1136,7 @@ static int cli_io_handler_add_crtlist(struct appctx *appctx) new_inst->crtlist_entry = entry; } ctx->state = ADDCRT_ST_INSERT; - /* fallthrough */ + __fallthrough; case ADDCRT_ST_INSERT: /* the insertion is called for every instance of the store, not * only the one we generated. @@ -1154,7 +1154,7 @@ static int cli_io_handler_add_crtlist(struct appctx *appctx) entry->linenum = ++crtlist->linecount; ctx->entry = NULL; ctx->state = ADDCRT_ST_SUCCESS; - /* fallthrough */ + __fallthrough; case ADDCRT_ST_SUCCESS: chunk_reset(&trash); chunk_appendf(&trash, "\n");