Chromium Code Reviews

Unified Diff: tests/GLProgramsTest.cpp

Issue 175383002: Fix warnings on Ubuntu13 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Initialize some variables to remove warnings. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/animator/SkDisplayType.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/GLProgramsTest.cpp
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index 24312eed8d8a3d83573d80a4d4c45f05cc41c9bc..9e391368f93b6c989938bc53f72509326b32d40f 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -155,6 +155,8 @@ bool GrGpuGL::programUnitTest(int maxStages) {
int currAttribIndex = 1; // we need to always leave room for position
int currTextureCoordSet = 0;
int attribIndices[2];
+ attribIndices[0] = 0;
bsalomon 2014/02/21 19:00:28 lgtm, but maybe: int attribIndices[] = {0, 0}; ?
scroggo 2014/02/21 19:08:55 Done.
+ attribIndices[1] = 0;
GrTexture* dummyTextures[] = {dummyTexture1.get(), dummyTexture2.get()};
int numStages = random.nextULessThan(maxStages + 1);
« no previous file with comments | « src/animator/SkDisplayType.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine