From 3064f52b15f3beead2aa372e3d8fa1ff6bea8caa Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 14 Nov 2022 07:22:14 +0100 Subject: [PATCH] BUILD: spoe: use __fallthrough in spoe_handle_appctx() This avoids two build warnings when preprocessing happens before compiling with gcc >= 7. --- src/flt_spoe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flt_spoe.c b/src/flt_spoe.c index 853452f53..ed3194381 100644 --- a/src/flt_spoe.c +++ b/src/flt_spoe.c @@ -1997,7 +1997,7 @@ spoe_handle_appctx(struct appctx *appctx) goto switchstate; } appctx->st0 = SPOE_APPCTX_ST_PROCESSING; - /* fall through */ + __fallthrough; case SPOE_APPCTX_ST_PROCESSING: case SPOE_APPCTX_ST_SENDING_FRAG_NOTIFY: @@ -2023,7 +2023,7 @@ spoe_handle_appctx(struct appctx *appctx) sc_shutw(sc); sc_shutr(sc); sc_ic(sc)->flags |= CF_READ_NULL; - /* fall through */ + __fallthrough; case SPOE_APPCTX_ST_END: return;