summaryrefslogtreecommitdiff
path: root/pipe/SkGPipeRead.cpp
diff options
context:
space:
mode:
authorcaryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-06 12:04:11 +0000
committercaryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-06 12:04:11 +0000
commitafdd736d7bfc19e42ed328f9ad33f54270679ce7 (patch)
tree42c23578bf2a65740f2ae775306a6a4ad6e78f4e /pipe/SkGPipeRead.cpp
parenta551352f08fd799cceab9a750db4300ddaba88c4 (diff)
downloadsrc-afdd736d7bfc19e42ed328f9ad33f54270679ce7.tar.gz
fix warnings on Mac in src/pipe
Fix these class of warnings: - unused functions - unused locals - sign mismatch - missing function prototypes - missing newline at end of file - 64 to 32 bit truncation The changes prefer to link in dead code in the debug build with 'if (false)' than to comment it out, but trivial cases are commented out or sometimes deleted if it appears to be a copy/paste error. Review URL: https://codereview.appspot.com/6302045 git-svn-id: http://skia.googlecode.com/svn/trunk/src@4177 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'pipe/SkGPipeRead.cpp')
-rw-r--r--pipe/SkGPipeRead.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pipe/SkGPipeRead.cpp b/pipe/SkGPipeRead.cpp
index 820d0a7c..976abbf1 100644
--- a/pipe/SkGPipeRead.cpp
+++ b/pipe/SkGPipeRead.cpp
@@ -577,7 +577,7 @@ SkGPipeReader::Status SkGPipeReader::playback(const void* data, size_t length,
while (!reader.eof()) {
uint32_t op32 = reader.readU32();
unsigned op = DrawOp_unpackOp(op32);
- SkDEBUGCODE(DrawOps drawOp = (DrawOps)op;)
+ // SkDEBUGCODE(DrawOps drawOp = (DrawOps)op;)
if (op >= SK_ARRAY_COUNT(gReadTable)) {
SkDebugf("---- bad op during GPipeState::playback\n");