From ad51132b1b494e9921c500167adc899e6cfc8684 Mon Sep 17 00:00:00 2001 From: "scroggo@google.com" Date: Fri, 22 Feb 2013 15:50:37 +0000 Subject: 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 --- src/core/SkBitmapProcState.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3