mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
Silence unused-variables warning on MSVC
Fixes https://github.com/harfbuzz/harfbuzz/issues/635
This commit is contained in:
1 parent
80c1b01f05
commit
be59f3cbf4
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user