Commit e85477f0 authored by Sean McBride's avatar Sean McBride Committed by Kitware Robot

Merge topic 'hdf-ubsan-fix'

868c787a fixed HDF + UBSan hack to work with old clang
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !1431
parents 2b53fb28 868c787a
Pipeline #12789 running with stage
......@@ -62,9 +62,13 @@ static const char *FileHeader = "\n\
* 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
......
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