]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: Cast to volatile int * instead of int *.
authorOlivier Houchard <cognet@ci0.org>
Sat, 15 Dec 2018 23:58:28 +0000 (00:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 16 Dec 2018 07:15:16 +0000 (08:15 +0100)
commit51e474136b6c53a64486a60251a33cce85662b57
treeb29fcd86691d501b078dc2b89a3df1392fd2992f
parentefef3237834e9e855d25dcead8f7dae66ac3084f
MINOR: pools: Cast to volatile int * instead of int *.

When using DEBUG_MEMORY_POOLS, when we want to crash, instead of using
*(int *)0 = 0, use *(volatile int *)0 = 0, or clang will just translate it
to a nop, instead of dereferencing 0.
include/common/memory.h