BUILD: plock: remove dead code that causes a warning in gcc 11
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Dec 2020 09:27:18 +0000 (10:27 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 8 Jan 2021 10:38:03 +0000 (11:38 +0100)
commitb14887fac58637e0436d861e94eecaa98971f86a
tree217d8973f59b298002d941f946d4b69cb31b78a9
parent844a061a5d917fc604b303c39cc5d3d2afbfb2dc
BUILD: plock: remove dead code that causes a warning in gcc 11

As Ilya reported in issue #998, gcc 11 complains about misleading code
indentation which is in fact caused by dead assignments to zero after
a loop which stops on zero. Let's clean both of these.

(cherry picked from commit b1f54925fc17b00ddbe25e30c2207a8d68d47f34)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 775c665f20c695ad92fdb4318d5c77097ba15d7a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 78c677589e423f703cd9f5caefb28ed23bfba2a1)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/import/plock.h