зеркало из https://github.com/mozilla/moz-skia.git
Warn when ignoring result of SkMatrix::invert.
http://codereview.appspot.com/5989067/ git-svn-id: http://skia.googlecode.com/svn/trunk@3637 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
1b3ac8b5f0
Коммит
363a4c22af
|
@ -336,7 +336,7 @@ public:
|
|||
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.
|
||||
|
|
|
@ -68,6 +68,9 @@
|
|||
#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
|
||||
|
||||
|
@ -77,6 +80,10 @@
|
|||
#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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче