diff options
author | Andrew Kaster <andrewdkaster@gmail.com> | 2021-05-12 05:51:02 -0600 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-14 08:34:00 +0100 |
commit | 28987d1b5638d5b6e88e748d3ca230378a22b87d (patch) | |
tree | e7b26b05e11efa024558cb9f903b85b0f0229ea5 /AK | |
parent | d81f52e5295c75f2cb6363552dfe7a451b57e197 (diff) | |
download | serenity-28987d1b5638d5b6e88e748d3ca230378a22b87d.zip |
AK: Add #define for [[gnu::no_sanitize_address]]
This lines up with other attribute global #defines
Diffstat (limited to 'AK')
-rw-r--r-- | AK/Platform.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <unistd.h> # define PAGE_SIZE sysconf(_SC_PAGESIZE) |