| Index: include/core/SkTypes.h
|
| diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
|
| index f99bb019498a5c15db390d668f34f67fb5811df9..b44df0de485056969550fc0428374f7d25ee6315 100644
|
| --- a/include/core/SkTypes.h
|
| +++ b/include/core/SkTypes.h
|
| @@ -148,8 +148,9 @@ inline void operator delete(void* p) {
|
| #define SkDECLAREPARAM(type, var)
|
| #define SkPARAM(var)
|
|
|
| - // unlike SkASSERT, this guy executes its condition in the non-debug build
|
| - #define SkAssertResult(cond) cond
|
| + // unlike SkASSERT, this guy executes its condition in the non-debug build.
|
| + // It casts to void to allow use with functions declared with SK_WARN_RESULT_UNUSED.
|
| + #define SkAssertResult(cond) (void)(cond)
|
| #endif
|
|
|
| // Legacy macro names for SK_ABORT
|
|
|