mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
MINOR: debug: make the ABORT_NOW macro use a volatile int
Similar to previous commit, let's make the macro use a volatile when dereferencing NULL so that clang doesn't optimize it away.
This commit is contained in:
parent
51e474136b
commit
bce4d8a37d
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@
|
|||
/* This abort is more efficient than abort() because it does not mangle the
|
||||
* stack and stops at the exact location we need.
|
||||
*/
|
||||
#define ABORT_NOW() (*(int*)0=0)
|
||||
#define ABORT_NOW() (*(volatile int*)0=0)
|
||||
|
||||
/* this one is provided for easy code tracing.
|
||||
* Usage: TRACE(strm||0, fmt, args...);
|
||||
|
|
|
|||
Loading…
Reference in a new issue