[Piglit] [PATCH] CL: Silence uninitialized use warning in switch(main_argument_type)

Aaron Watry awatry at gmail.com
Mon Sep 1 08:52:35 PDT 2014


Signed-off-by: Aaron Watry <awatry at gmail.com>
---
 tests/cl/program/program-tester.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/cl/program/program-tester.c b/tests/cl/program/program-tester.c
index 0e35826..4798e59 100644
--- a/tests/cl/program/program-tester.c
+++ b/tests/cl/program/program-tester.c
@@ -1546,6 +1546,7 @@ init(const int argc,
 		config_file = piglit_cl_get_arg_value(argc, argv, "config");
 		config_str = piglit_load_text_file(config_file, &config_str_size);
 	} else {
+		main_argument_type = ARG_BINARY;
 		fprintf(stderr, "Ops, this should not happen!\n");
 		exit_report_result(PIGLIT_WARN);
 	}
-- 
2.0.0



More information about the Piglit mailing list