tests: get rid of missing-field-initializers warning in test_bin_info.c
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 4 Oct 2019 18:39:09 +0000 (14:39 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Oct 2019 18:14:29 +0000 (14:14 -0400)
commitc734aa5344787c7019c55521d1007911552a830c
tree5015ad4da63fd87d13f4c91868cda21ca4ce9c13
parent1b3ea254127de2e9dee24b81e674020c661f48fe
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 <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2133
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c
This page took 0.024927 seconds and 4 git commands to generate.