CLEANUP: fd: use a union in fd_rm_from_fd_list() to shut aliasing warnings
authorWilly Tarreau <w@1wt.eu>
Tue, 25 Feb 2020 08:25:53 +0000 (09:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 25 Feb 2020 08:25:53 +0000 (09:25 +0100)
commit2b9f0664d601188f074f14c8844bc05d5cdeebff
tree265fd74bcbd0be57d5916b671f4b94d9b3077cec
parent105599c1bab84f67e013a266fd846799c7075b69
CLEANUP: fd: use a union in fd_rm_from_fd_list() to shut aliasing warnings

Enabling strict aliasing fails in fd.c when using the double-word CAS,
let's get rid of the (void**)(void*)&cur_list junk and use a union
instead. This way the compiler knows they do alias.
src/fd.c