commit | be59f3cbf4e3269ea05d5a707cdae04a32e097ce | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Tue Dec 05 09:01:28 2017 -0800 |
committer | Behdad Esfahbod <behdad@behdad.org> | Tue Dec 05 09:01:28 2017 -0800 |
tree | b8911ba110c1d867e9ce7d20a580b267b0c7f28b | |
parent | 80c1b01f054c5d65ca96a568aaf1c28ffe97215b [diff] [blame] |
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 9c55b4b..acddd89 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh
@@ -112,6 +112,8 @@ #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