]> git.kaiwu.me - haproxy.git/commit
BUILD: protocol: silence -Warray-bounds in single-group builds
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 14 Aug 2026 16:59:44 +0000 (18:59 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 14 Aug 2026 16:57:43 +0000 (18:57 +0200)
commit753415518aab5d36443fa2e8bfafd3fd62115313
tree67317bb077ed05dbf5597acb8a44ab6f85b3c08f
parent2abd47127c40c7ebf62ea4aca2e2cc13b36a75e4
BUILD: protocol: silence -Warray-bounds in single-group builds

When MAX_TGROUPS is 1 (e.g. built without threads), gcc warns that the
ha_tgroup_ctx[] accesses in protocol_grab_foreign_receivers() may be out
of bounds, as it cannot know that nbtgroups < 2 makes them unreachable.
src/protocol.c