From 617d5161d4ec454afc673ce1836b02f82435b347 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 26 Oct 2015 14:14:58 +0100 Subject: sbus_codegen_tests: Suppress warning Wmaybe-uninitialized MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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; ^ Reviewed-by: Pavel Březina --- 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 86424116b..53b5d6fcf 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); -- cgit