commit | 36a73439f96fdd292a747a4fd350c8f773974315 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Nov 14 07:31:36 2022 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Nov 14 11:14:02 2022 +0100 |
tree | be5dfa90a5af8694e08ec363424c69b2d11aec4b | |
parent | 80f9a63184f185f435dd72f5c5ffb9f8a0ff8ee5 [diff] |
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 722292c..e548b17 100644 --- a/src/check.c +++ b/src/check.c
@@ -686,7 +686,7 @@ 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 */