Index: include/core/SkPostConfig.h |
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h |
index 97c868f30febc7f057bb5c7da8aa9d066203660f..1b1cb3e751e7273d984ef48212ce266159b85136 100644 |
--- a/include/core/SkPostConfig.h |
+++ b/include/core/SkPostConfig.h |
@@ -245,7 +245,11 @@ |
////////////////////////////////////////////////////////////////////// |
#if !defined(SK_UNUSED) |
-# define SK_UNUSED SK_ATTRIBUTE(unused) |
+# if defined(_MSC_VER) |
+# define SK_UNUSED __pragma(warning(suppress:4189)) |
+# else |
+# define SK_UNUSED SK_ATTRIBUTE(unused) |
+# endif |
#endif |
#if !defined(SK_ATTR_DEPRECATED) |