http://codereview.appspot.com/5989067/
git-svn-id: http://skia.googlecode.com/svn/trunk@3637
2bbb7eff-a529-9590-31e7-
b0007b416f81
set inverse to be the inverse of this matrix. If this matrix cannot be
inverted, ignore inverse and return false
*/
- bool invert(SkMatrix* inverse) const;
+ bool SK_WARN_UNUSED_RESULT invert(SkMatrix* inverse) const;
/** Fills the passed array with affine identity values
in column major order.
#if !defined(SK_RESTRICT)
#define SK_RESTRICT __restrict
#endif
+ #if !defined(SK_WARN_UNUSED_RESULT)
+ #define SK_WARN_UNUSED_RESULT
+ #endif
#include "sk_stdint.h"
#endif
#define SK_RESTRICT __restrict__
#endif
+#if !defined(SK_WARN_UNUSED_RESULT)
+ #define SK_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
+#endif
+
//////////////////////////////////////////////////////////////////////
#if !defined(SK_SCALAR_IS_FLOAT) && !defined(SK_SCALAR_IS_FIXED)