]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: check: use __fallthrough in __health_adjust()
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 06:31:36 +0000 (07:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 10:14:02 +0000 (11:14 +0100)
This avoids one build warning when preprocessing happens before compiling
with gcc >= 7.

src/check.c

index 722292c0e9a5a55b78f6ba9b4bd3c240b2e11def..e548b17c7053f43c7b64eae18528dd6b73b9228e 100644 (file)
@@ -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 */