Fix warnings on linux build (strict aliasing, cons init order, vars used only in asserts)
git-svn-id: http://skia.googlecode.com/svn/trunk@756 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 5059569..cc7cb7b 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -465,8 +465,8 @@
dstPosition->fY = SkScalarToGrScalar(fPoints[i].fY);
}
private:
- int fCount;
const SkPoint* fPoints;
+ int fCount;
};
class SkTexCoordSource {
@@ -506,8 +506,8 @@
}
private:
- int fCount;
const uint16_t* fIndices;
+ int fCount;
};
///////////////////////////////////////////////////////////////////////////////