From 60311566021c60e356c37720332bdbdf962618fe Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 15 Mar 2012 16:06:29 +0100 Subject: [PATCH] test: silence compiler warning main_proc is never read without having been initialized first but gcc 4.4.x fails to infer that. --- test/runner.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/runner.c b/test/runner.c index be790f7e78..34e566ecf9 100644 --- a/test/runner.c +++ b/test/runner.c @@ -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; }