From: Willy Tarreau Date: Mon, 14 Nov 2022 06:31:36 +0000 (+0100) Subject: BUILD: check: use __fallthrough in __health_adjust() X-Git-Tag: v2.7-dev9~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36a73439f96fdd292a747a4fd350c8f773974315;p=thirdparty%2Fhaproxy.git BUILD: check: use __fallthrough in __health_adjust() This avoids one build warning when preprocessing happens before compiling with gcc >= 7. --- diff --git a/src/check.c b/src/check.c index 722292c0e9..e548b17c70 100644 --- a/src/check.c +++ b/src/check.c @@ -686,7 +686,7 @@ void __health_adjust(struct server *s, short status) if (s->check.health > s->check.rise) s->check.health = s->check.rise + 1; - /* fall through */ + __fallthrough; case HANA_ONERR_FAILCHK: /* simulate a failed health check */