From 89228ccb9a81b728bc9955082c17c68c848c50c4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 22 Jul 2019 07:07:37 -0400 Subject: [PATCH] Fix warning on IBM compilers Fixes https://github.com/harfbuzz/harfbuzz/issues/1852 --- src/hb.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb.hh b/src/hb.hh index 0790de2fd..8dcd5aa88 100644 --- a/src/hb.hh +++ b/src/hb.hh @@ -318,7 +318,8 @@ extern "C" void hb_free_impl(void *ptr); # define HB_FALLTHROUGH /* FALLTHROUGH */ #endif -#ifdef __clang__ +/* https://github.com/harfbuzz/harfbuzz/issues/1852 */ +#if defined(__clang__) && !(defined(_AIX) && (defined(__IBMCPP__) || defined(__ibmxl__))) /* Disable certain sanitizer errors. */ /* https://github.com/harfbuzz/harfbuzz/issues/1247 */ #define HB_NO_SANITIZE_SIGNED_INTEGER_OVERFLOW __attribute__((no_sanitize("signed-integer-overflow")))