GCC recommands to add alternative to __has_attribute operator: https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005fattribute.htmltags/2.5
# endif | # endif | ||||
#elif defined(__GNUC__) | #elif defined(__GNUC__) | ||||
/* GCC based */ | /* GCC based */ | ||||
# if __has_attribute(__no_sanitize_address__) | |||||
# define RSPAMD_NO_SANITIZE __attribute__((no_sanitize_address)) | |||||
# if defined(__has_attribute) | |||||
# if __has_attribute(__no_sanitize_address__) | |||||
# define RSPAMD_NO_SANITIZE __attribute__((no_sanitize_address)) | |||||
# else | |||||
# define RSPAMD_NO_SANITIZE | |||||
# endif | |||||
# else | # else | ||||
# define RSPAMD_NO_SANITIZE | # define RSPAMD_NO_SANITIZE | ||||
# endif | # endif |