From 28987d1b5638d5b6e88e748d3ca230378a22b87d Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Wed, 12 May 2021 05:51:02 -0600 Subject: AK: Add #define for [[gnu::no_sanitize_address]] This lines up with other attribute global #defines --- AK/Platform.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'AK') diff --git a/AK/Platform.h b/AK/Platform.h index ec03c2f170..0d6801cab7 100644 --- a/AK/Platform.h +++ b/AK/Platform.h @@ -40,6 +40,11 @@ #endif #define FLATTEN [[gnu::flatten]] +#ifdef NO_SANITIZE_ADDRESS +# undef NO_SANITIZE_ADDRESS +#endif +#define NO_SANITIZE_ADDRESS [[gnu::no_sanitize_address]] + #ifndef __serenity__ # include # define PAGE_SIZE sysconf(_SC_PAGESIZE) -- cgit v1.2.3