remove USE_UNWIND from header

This commit is contained in:
Nikita Lapkov 2019-03-05 20:42:02 +00:00
parent 70b5aaafa6
commit 2429449fb6
2 changed files with 3 additions and 5 deletions

View File

@ -4,11 +4,6 @@
#include <vector>
#include <signal.h>
#if USE_UNWIND
#define UNW_LOCAL_ONLY
#include <libunwind.h>
#endif
#ifdef __APPLE__
// ucontext is not available without _XOPEN_SOURCE
#define _XOPEN_SOURCE

View File

@ -14,6 +14,9 @@
#endif
#if USE_UNWIND
#define UNW_LOCAL_ONLY
#include <libunwind.h>
/** We suppress the following ASan report. Also shown by Valgrind.
==124==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7f054be57000 at pc 0x0000068b0649 bp 0x7f060eeac590 sp 0x7f060eeabd40
READ of size 1 at 0x7f054be57000 thread T3