gles: Limit variable definition to the same scope as usage (#1495)

Fix unused-variable errors by limiting variable definition to the
case that would use it
This commit is contained in:
Sreelakshmi Haridas Maruthur
2022-09-13 10:50:25 -06:00
committed by GitHub
parent d42b3dcfb6
commit 426097cf7c

View File

@@ -320,8 +320,10 @@ int main(int argc, const char *argv[])
goto cleanup;
}
#ifdef GLES3
int argc_ = (first_32_testname) ? 1 + (argc - first_32_testname) : argc;
const char** argv_ = (first_32_testname) ? &argv[first_32_testname-1] : argv;
#endif
// Execute the tests.
for( size_t i = 0; i < numDevices; i++ ) {