From: Willy Tarreau Date: Mon, 14 Nov 2022 06:22:14 +0000 (+0100) Subject: BUILD: spoe: use __fallthrough in spoe_handle_appctx() X-Git-Tag: v2.7-dev9~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3064f52b15f3beead2aa372e3d8fa1ff6bea8caa;p=thirdparty%2Fhaproxy.git BUILD: spoe: use __fallthrough in spoe_handle_appctx() This avoids two build warnings when preprocessing happens before compiling with gcc >= 7. --- diff --git a/src/flt_spoe.c b/src/flt_spoe.c index 853452f533..ed31943816 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;