Commit 868c787a authored by Sean McBride's avatar Sean McBride

fixed HDF + UBSan hack to work with old clang

parent 2b53fb28
Pipeline #12784 passed with stage
...@@ -62,9 +62,13 @@ static const char *FileHeader = "\n\ ...@@ -62,9 +62,13 @@ static const char *FileHeader = "\n\
* Behavior Sanitizer (UBSan) from warning. * Behavior Sanitizer (UBSan) from warning.
*/ */
#if defined(__clang__) #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 #else
#define HDF_NO_UBSAN #define HDF_NO_UBSAN
#endif #endif
......
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