]> git.kaiwu.me - haproxy.git/commit
BUILD: haring: fix compile issue due to nop warning.
authorEmeric Brun <ebrun@haproxy.com>
Mon, 28 Sep 2026 13:22:50 +0000 (15:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Sep 2026 08:51:27 +0000 (10:51 +0200)
commit718fadb898ec5778df27b05d3bf6aa8ff0d620bb
treee3606a0845adacc38631508a08191ac34311ebef
parente23cb222bda2ab5162538e7939477741630b7f24
BUILD: haring: fix compile issue due to nop warning.

Compile issue introduced by commit c0b39ea75e ("DEV: haring: bound the
ring geometry to the size of the file").

This patch introduce a warning at compile the binary is not
compiling in case of -Wno-error because of statement with no effects.

In addition it seems also an error since the added static var was never set.

It seems to use a static to rise an error message only one time. So I
suppose it should be set to 1 as soon the error message is printed.

This patch must backported until 3.4.
dev/haring/haring.c