]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: memory: fix pointer declaration for atomic CAS
authorWilly Tarreau <w@1wt.eu>
Thu, 18 Oct 2018 14:12:28 +0000 (16:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Oct 2018 14:12:28 +0000 (16:12 +0200)
commitac6c8805be9a29cb3c64c2fee6efffae516cf7d8
treed57fa82e7eb9b8b330a076e9490fda37f51c5c4a
parent7e9c4ae4de3e7dc36058763fd70aa0bb28541d0c
BUILD: memory: fix pointer declaration for atomic CAS

The calls to HA_ATOMIC_CAS() on the lockfree version of the pool allocator
were mistakenly done on (void*) for the old value instead of (void **).
While this has no impact on "recent" gcc, it does have one for gcc < 4.7
since the CAS was open coded and it's not possible to assign a temporary
variable of type "void".

No backport is needed, this only affects 1.9.
include/common/memory.h
src/memory.c