C does not strictly allow allow an empty initializer list `{}`, which can
result in missing-field-initializers warnings from the compiler. All
consumers of this array cycle through until they see a NULL name, so
this commit replaces the empty initializer with { .name = NULL }.Signed-off-by: Jason Gerecke <[email protected]> --- tools/xsetwacom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 1051868..a94d1f9 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -484,7 +484,7 @@ static param_t parameters[] = .get_func = get_all, .prop_flags = PROP_FLAG_READONLY, }, - {} + {.name = NULL} }; /** -- 2.15.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
