From ef5a502c76f5ee16f5a4916672ce506e8960d964 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 4 Oct 2019 14:39:09 -0400 Subject: [PATCH] tests: get rid of missing-field-initializers warning in test_bin_info.c This is not super important, and the current code looks correct, but clang produces this warning: /home/smarchi/src/babeltrace/tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c:93:7: error: missing field 'short_name' initializer [-Werror,-Wmissing-field-initializers] {NULL}}; I'd like to have this warning enabled, since it can catch some legitimate mistakes, so I thought it would be useful to change the code to avoid having a warning. Change-Id: Icb5d3227b87ba1bbf405cd320f13886bf313492f Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/2133 Tested-by: jenkins Reviewed-by: Philippe Proulx --- tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c b/tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c index fec4142d..5524342c 100644 --- a/tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c +++ b/tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c @@ -90,7 +90,7 @@ static GOptionEntry entries[] = { "XXXXXXXXXXXXXXX"}, {"debug-info-dir", 0, 0, G_OPTION_ARG_STRING, &opt_debug_info_dir, "Debug info directory", NULL}, - {NULL}}; + {NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL}}; static int build_id_to_bin(void) -- 2.34.1