commit | 0e51577a14f903ffeafa117a75954baeb173ffb9 | [log] [tgz] |
---|---|---|
author | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jan 07 19:54:40 2013 +0000 |
committer | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jan 07 19:54:40 2013 +0000 |
tree | 3f3d849f3b6ec7778660f0da19f5d4175ba9f800 | |
parent | af2bd7bdf593b3fc91bb1acffcc4a51bdb2f29ec [diff] [blame] |
fix warning from scalar --> int32 conversion BUG= Review URL: https://codereview.appspot.com/7065050 git-svn-id: http://skia.googlecode.com/svn/trunk@7061 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/WritePixelsTest.cpp b/tests/WritePixelsTest.cpp index f5c4175..715d8f7 100644 --- a/tests/WritePixelsTest.cpp +++ b/tests/WritePixelsTest.cpp
@@ -136,7 +136,7 @@ static SkBitmap bmp; if (bmp.isNull()) { bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H); - bool alloc = bmp.allocPixels(); + SkDEBUGCODE(bool alloc = ) bmp.allocPixels(); SkASSERT(alloc); SkAutoLockPixels alp(bmp); intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels());