mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-02 01:20:49 +00:00
BUILD: debug: make gcc not complain on the ABORT_NOW() macro
On recent gcc versions with the null-deref checks, ABORT_NOW() rightfully emits such a warning. But here it's on purpose. Simply changing the memory address to 1 makes gcc happy.
This commit is contained in:
parent
fa922f03a3
commit
a5e33a9b66
@ -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() (*(volatile int*)0=0)
|
||||
#define ABORT_NOW() (*(volatile int*)1=0)
|
||||
|
||||
/* this one is provided for easy code tracing.
|
||||
* Usage: TRACE(strm||0, fmt, args...);
|
||||
|
Loading…
Reference in New Issue
Block a user