From be59f3cbf4e3269ea05d5a707cdae04a32e097ce Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 5 Dec 2017 09:01:28 -0800 Subject: [PATCH] Silence unused-variables warning on MSVC Fixes https://github.com/harfbuzz/harfbuzz/issues/635 --- src/hb-private.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-private.hh b/src/hb-private.hh index 9c55b4b..acddd89 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -112,6 +112,8 @@ extern "C" void hb_free_impl(void *ptr); #endif #if __GNUC__ >= 4 #define HB_UNUSED __attribute__((unused)) +#elif defined(_MSC_VER) /* https://github.com/harfbuzz/harfbuzz/issues/635 */ +#define HB_UNUSED __pragma(warning(suppress: 4100 4101)) #else #define HB_UNUSED #endif -- 2.7.4