Commit e6a630b6 authored by Ronan's avatar Ronan

fix(compiler): use no_sanitize_undefined instead of no_sanitize("undefined") for old gcc

parent 0c998e12
......@@ -41,7 +41,7 @@
#define BCTBX_DISABLE_UBSAN
#endif // __has_attribute(no_sanitize)
#elif defined(__GNUC__) && !defined(__MINGW32__) && GCC_VERSION >= 40900
#define BCTBX_DISABLE_UBSAN __attribute__((no_sanitize("undefined")))
#define BCTBX_DISABLE_UBSAN __attribute__((no_sanitize_undefined))
#else
#define BCTBX_DISABLE_UBSAN
#endif // ifdef __has_attribute
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment