diff options
author | 2015-04-28 12:47:48 -0700 | |
---|---|---|
committer | 2015-04-28 12:47:48 -0700 | |
commit | 79612de00f66408cff253605fbe2bb2a9e2b27ff (patch) | |
tree | aee7e4f479d1f13c572cacc47d216e963d12eea8 /samplecode/SampleTextureDomain.cpp | |
parent | fcabe429a4cd55d4b0b6c3e7b8b648fe8b35924d (diff) |
Remove useless SkASSERT in SkRect.h and SkRegion.h
The pointer of reference is always not-null. It causes >50k lines of warnning when chromium is compiled by clang.
Warning looks like
../../third_party/skia/include/core/SkRect.h:284:19: warning: reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
do { if (&r) break; SkNO_RETURN_HINT(); SkDebugf_FileLine("../../third_party/skia/include/core/SkRect.h", 284, false, "%s:%d: failed assertion \"%s\"\n", "../../third_party/skia/include/core/SkRect.h", 284, "&r"); SkDebugf_FileLine("../../third_party/skia/include/core/SkRect.h", 284, true, "SK_CRASH"); } while (false);
Review URL: https://codereview.chromium.org/1111013002
Diffstat (limited to 'samplecode/SampleTextureDomain.cpp')
0 files changed, 0 insertions, 0 deletions