summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2017-11-13 16:08:52 -0800
committerJason Gerecke <killertofu@gmail.com>2017-11-29 13:48:01 -0800
commit43a02abb08c23d25a10d695cea8c15abd74bc56b (patch)
tree2aba8acfb7e85828f27e5ae18efccb45cdbf4d4d
parentc0cce4c14cbda8b5ff89548a40418ff3a42f7274 (diff)
downloadxf86-input-wacom-43a02abb08c23d25a10d695cea8c15abd74bc56b.tar.gz
xsetwacom: Use explicit NULL for final element of 'parameters' array
C does not strictly 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 <jason.gerecke@wacom.com> Reviewed-by: Ping Cheng <ping.cheng@wacom.com>
-rw-r--r--tools/xsetwacom.c2
1 files changed, 1 insertions, 1 deletions
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}
};
/**