Chromium Code Reviews| Index: include/core/SkPostConfig.h |
| diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h |
| index 97c868f30febc7f057bb5c7da8aa9d066203660f..384dbe9d40585075361fca1aad840394ed9c5d6a 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)) |
|
bungeman-skia
2016/08/24 15:18:17
Won't this suppress the warning for the entire res
mtklein
2016/08/24 16:52:58
I don't think so.
As far as I can tell, suppress e
|
| + #else |
| + #define SK_UNUSED SK_ATTRIBUTE(unused) |
| + #endif |
| #endif |
| #if !defined(SK_ATTR_DEPRECATED) |