mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
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:
committed by
GitHub
parent
d42b3dcfb6
commit
426097cf7c
@@ -320,8 +320,10 @@ int main(int argc, const char *argv[])
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef GLES3
|
||||||
int argc_ = (first_32_testname) ? 1 + (argc - first_32_testname) : argc;
|
int argc_ = (first_32_testname) ? 1 + (argc - first_32_testname) : argc;
|
||||||
const char** argv_ = (first_32_testname) ? &argv[first_32_testname-1] : argv;
|
const char** argv_ = (first_32_testname) ? &argv[first_32_testname-1] : argv;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Execute the tests.
|
// Execute the tests.
|
||||||
for( size_t i = 0; i < numDevices; i++ ) {
|
for( size_t i = 0; i < numDevices; i++ ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user