From b8178f25548c81e9b608e29c233c01839945aaa3 Mon Sep 17 00:00:00 2001 From: Magnus Larsen Date: Mon, 12 Feb 2024 21:48:28 -0800 Subject: [PATCH] Disable Wcast-function-type on clang-cl, too --- src/hb-directwrite.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-directwrite.cc b/src/hb-directwrite.cc index 42764a244..6c90265d0 100644 --- a/src/hb-directwrite.cc +++ b/src/hb-directwrite.cc @@ -173,7 +173,7 @@ _hb_directwrite_shaper_face_data_create (hb_face_t *face) t_DWriteCreateFactory p_DWriteCreateFactory; -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wcast-function-type" #endif @@ -181,7 +181,7 @@ _hb_directwrite_shaper_face_data_create (hb_face_t *face) p_DWriteCreateFactory = (t_DWriteCreateFactory) GetProcAddress (data->dwrite_dll, "DWriteCreateFactory"); -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic pop #endif