>From 1a25df66c8770ec08544c22841dd48109e51eed8 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 26 Oct 2015 14:14:58 +0100 Subject: [PATCH] sbus_codegen_tests: Suppress warning Wmaybe-uninitialized There is a warning with gcc 4.8 src/tests/sbus_codegen_tests.c:1131:18: warning: 'exp_values' may be used uninitialized in this function [-Wmaybe-uninitialized] const char **exp_values; ^ --- src/tests/sbus_codegen_tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/sbus_codegen_tests.c b/src/tests/sbus_codegen_tests.c index 86424116bb01bb431137009a38416ce652001623..53b5d6fcf97d276945ce935af4cd71a5f2d768d0 100644 --- a/src/tests/sbus_codegen_tests.c +++ b/src/tests/sbus_codegen_tests.c @@ -1128,7 +1128,7 @@ START_TEST(test_get_array_dict_sas) const char *value; const char *hash_content[2][2] = {{"hello1", "world1"}, {"hello2", "world2"}}; - const char **exp_values; + const char **exp_values = NULL; int i; ctx = talloc_new(NULL); -- 2.5.0