commit | 8da23393a1ec3f24dcd408f4b35fdd3d9a141a5f | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Jan 28 08:52:57 2022 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Jan 28 19:04:02 2022 +0100 |
tree | 808dc1d2462243c3429a5e905369759ce5578e0f | |
parent | e08acaed19c6d6a86ebaf2b5f3089ebef78bc69d [diff] |
BUILD: atomic: make the old HA_ATOMIC_LOAD() support const pointers We have an implementation of atomic ops for older versions of gcc that do not provide the __builtin_* API (< 4.4). Recent changes to the pools broke that in pool_releasable() by having a load from a const pointer, which doesn't work there due to a temporary local variable that is declared then assigned. Let's make use of a compount statement to assign it a value when declaring it. There's no need to backport this.