[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Tue Dec 5 17:02:13 UTC 2017
src/hb-private.hh | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit be59f3cbf4e3269ea05d5a707cdae04a32e097ce
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Tue Dec 5 09:01:28 2017 -0800
Silence unused-variables warning on MSVC
Fixes https://github.com/harfbuzz/harfbuzz/issues/635
diff --git a/src/hb-private.hh b/src/hb-private.hh
index 9c55b4bc..acddd893 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
More information about the HarfBuzz
mailing list