Commit 325fb50d authored by Sean McBride's avatar Sean McBride

Fix build error with old clangs without UBSan

parent 3654a15b
Pipeline #13123 passed with stage
......@@ -2,9 +2,13 @@
* Behavior Sanitizer (UBSan) from warning.
*/
#if defined(__clang__)
#define HDF_NO_UBSAN __attribute__((no_sanitize("undefined")))
#if __has_attribute(no_sanitize)
#define HDF_NO_UBSAN __attribute__((no_sanitize("undefined")))
#else
#define HDF_NO_UBSAN
#endif
#else
#define HDF_NO_UBSAN
#define HDF_NO_UBSAN
#endif
#ifdef H5_FP_TO_INTEGER_OVERFLOW_WORKS_TEST
......
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