From 36a73439f96fdd292a747a4fd350c8f773974315 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 14 Nov 2022 07:31:36 +0100 Subject: [PATCH] BUILD: check: use __fallthrough in __health_adjust() This avoids one build warning when preprocessing happens before compiling with gcc >= 7. --- src/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check.c b/src/check.c index 722292c0e..e548b17c7 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 */