diff options
author | Brad King <brad.king@kitware.com> | 2023-12-01 15:09:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-12-01 15:09:54 (GMT) |
commit | 54eafb156f46badce53c3b443ec11824cef5f55b (patch) | |
tree | f7b003ba13c6a6d5afc5e91fac9b530f32d0d7c9 | |
parent | 838bdb4b3776e748242aebb497fd29753e8736f9 (diff) | |
download | CMake-54eafb156f46badce53c3b443ec11824cef5f55b.zip CMake-54eafb156f46badce53c3b443ec11824cef5f55b.tar.gz CMake-54eafb156f46badce53c3b443ec11824cef5f55b.tar.bz2 |
librhash: aligned_alloc is not available with IBM XLClang on Linux
The declaration exists in `<stdlib.h>` but the compiler warns about
its allocation alignment attribute.
-rw-r--r-- | Utilities/cmlibrhash/librhash/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Utilities/cmlibrhash/librhash/util.h b/Utilities/cmlibrhash/librhash/util.h index 148db39..51d5472 100644 --- a/Utilities/cmlibrhash/librhash/util.h +++ b/Utilities/cmlibrhash/librhash/util.h @@ -42,6 +42,7 @@ extern "C" { # define rhash_aligned_free(ptr) _aligned_free(ptr) #elif !defined(NO_STDC_ALIGNED_ALLOC) && (__STDC_VERSION__ >= 201112L || defined(_ISOC11_SOURCE)) \ + && !(defined(__ibmxl__) && defined(__clang__) && defined(__linux__)) \ && !defined(__APPLE__) && !defined(__HAIKU__) && !defined(__sun) \ && (!defined(__ANDROID_API__) || __ANDROID_API__ >= 28) |