diff options
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-22 15:50:37 +0000 |
---|---|---|
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-22 15:50:37 +0000 |
commit | ad51132b1b494e9921c500167adc899e6cfc8684 (patch) | |
tree | 28cabb856a6b667da9803e0059209c78b1b6603c /src | |
parent | c4dc831f7be430dc8a7d68fd9eb84bfda8a1c519 (diff) |
Avoid an unitialized warning on linux.
Review URL: https://codereview.appspot.com/7378050
git-svn-id: http://skia.googlecode.com/svn/trunk@7825 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkBitmapProcState.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkBitmapProcState.cpp b/src/core/SkBitmapProcState.cpp index 97ffef5728..8bafee1b1d 100644 --- a/src/core/SkBitmapProcState.cpp +++ b/src/core/SkBitmapProcState.cpp @@ -435,7 +435,9 @@ static void S32_D32_constX_shaderproc(const SkBitmapProcState& s, SkASSERT(count > 0 && colors != NULL); SkASSERT(1 == s.fBitmap->width()); - int iY0, iY1, iSubY; + int iY0; + int iY1 SK_INIT_TO_AVOID_WARNING; + int iSubY SK_INIT_TO_AVOID_WARNING; if (s.fDoFilter) { SkBitmapProcState::MatrixProc mproc = s.getMatrixProc(); |