From aef8448b58e8201585cbe1c1dd43acccadda5346 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 14 Nov 2022 07:03:16 +0100 Subject: [PATCH] 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. --- src/ssl_crtlist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ssl_crtlist.c b/src/ssl_crtlist.c index a8cd24044..b5979bdf3 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");