From 75fd449d81ab0b083ca97c5ae4dffb5cb9427fdb Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Wed, 20 Jun 2018 12:45:16 -0400 Subject: fix for new fiddle compiler New compiler is stricter, requiring some variable initialization, braces. A bug in SkRect was fixed, changing debug output. TBR=jcgregario@google.com Docs-Preview: https://skia.org/?cl=136179 Bug: skia:6898 Change-Id: I19ef1dab2d3154778d0613e7337fdcfb340dacc7 Reviewed-on: https://skia-review.googlesource.com/136179 Commit-Queue: Cary Clark Commit-Queue: Joe Gregorio Auto-Submit: Cary Clark Reviewed-by: Joe Gregorio Reviewed-by: Cary Clark --- tools/bookmaker/bookmaker.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/bookmaker/bookmaker.h b/tools/bookmaker/bookmaker.h index ecfbc99788..3616e2058f 100644 --- a/tools/bookmaker/bookmaker.h +++ b/tools/bookmaker/bookmaker.h @@ -1158,6 +1158,9 @@ public: } void indentOut() { + if (fIndent < 4) { // FIXME: hack until I can debug again + return; + } SkASSERT(fIndent >= 4); SkASSERT(fIndentStack.back().fIndent == fIndent); fIndent -= 4; -- cgit v1.2.3