Fix warning on IBM compilers

Fixes https://github.com/harfbuzz/harfbuzz/issues/1852
This commit is contained in:
Behdad Esfahbod 2019-07-22 07:07:37 -04:00
parent 759f3bd486
commit 89228ccb9a
1 changed files with 2 additions and 1 deletions

View File

@ -318,7 +318,8 @@ extern "C" void hb_free_impl(void *ptr);
# define HB_FALLTHROUGH /* FALLTHROUGH */ # define HB_FALLTHROUGH /* FALLTHROUGH */
#endif #endif
#ifdef __clang__ /* https://github.com/harfbuzz/harfbuzz/issues/1852 */
#if defined(__clang__) && !(defined(_AIX) && (defined(__IBMCPP__) || defined(__ibmxl__)))
/* Disable certain sanitizer errors. */ /* Disable certain sanitizer errors. */
/* https://github.com/harfbuzz/harfbuzz/issues/1247 */ /* https://github.com/harfbuzz/harfbuzz/issues/1247 */
#define HB_NO_SANITIZE_SIGNED_INTEGER_OVERFLOW __attribute__((no_sanitize("signed-integer-overflow"))) #define HB_NO_SANITIZE_SIGNED_INTEGER_OVERFLOW __attribute__((no_sanitize("signed-integer-overflow")))