Suppress warnings in GrBufferAllocPool

git-svn-id: http://skia.googlecode.com/svn/trunk@1148 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2011-04-18 19:07:44 +00:00
parent 91408cc296
commit 8b484419e8

View File

@ -346,8 +346,8 @@ void* GrVertexBufferAllocPool::makeSpace(GrVertexLayout layout,
GrAssert(NULL != startVertex);
size_t vSize = GrDrawTarget::VertexSize(layout);
size_t offset;
const GrGeometryBuffer* geomBuffer;
size_t offset = 0; // assign to suppress warning
const GrGeometryBuffer* geomBuffer = NULL; // assign to suppress warning
void* ptr = INHERITED::makeSpace(vSize * vertexCount,
vSize,
&geomBuffer,
@ -405,8 +405,8 @@ void* GrIndexBufferAllocPool::makeSpace(int indexCount,
GrAssert(NULL != buffer);
GrAssert(NULL != startIndex);
size_t offset;
const GrGeometryBuffer* geomBuffer;
size_t offset = 0; // assign to suppress warning
const GrGeometryBuffer* geomBuffer = NULL; // assign to suppress warning
void* ptr = INHERITED::makeSpace(indexCount * sizeof(uint16_t),
sizeof(uint16_t),
&geomBuffer,