mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-26 21:04:25 +08:00
tests: Fix expansion-to-defined warning
This warning is new as of GCC 7 and highlights undefined behavior in the preprocessor that ASAN detection was relying on.
This commit is contained in:
parent
ba9504325e
commit
492ebc22bc
@ -8,7 +8,11 @@
|
|||||||
#if defined(__has_feature)
|
#if defined(__has_feature)
|
||||||
# define ADDRESS_SANITIZER __has_feature(address_sanitizer)
|
# define ADDRESS_SANITIZER __has_feature(address_sanitizer)
|
||||||
#else
|
#else
|
||||||
# define ADDRESS_SANITIZER defined(__SANITIZE_ADDRESS__)
|
# if defined(__SANITIZE_ADDRESS__)
|
||||||
|
# define ADDRESS_SANITIZER 1
|
||||||
|
# else
|
||||||
|
# define ADDRESS_SANITIZER 0
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Low-level allocation functions
|
// Low-level allocation functions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user