test: silence compiler warning
main_proc is never read without having been initialized first but gcc 4.4.x fails to infer that.
This commit is contained in:
parent
7a2bd05493
commit
6031156602
@ -86,6 +86,7 @@ int run_test(const char* test, int timeout, int benchmark_output) {
|
||||
int i;
|
||||
|
||||
status = 255;
|
||||
main_proc = NULL;
|
||||
process_count = 0;
|
||||
|
||||
/* If it's a helper the user asks for, start it directly. */
|
||||
@ -123,7 +124,7 @@ int run_test(const char* test, int timeout, int benchmark_output) {
|
||||
uv_sleep(250);
|
||||
|
||||
/* Now start the test itself. */
|
||||
for (main_proc = NULL, task = TASKS; task->main; task++) {
|
||||
for (task = TASKS; task->main; task++) {
|
||||
if (strcmp(test, task->task_name) != 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user