From 094d363aa99de2c4747fc502bba848a82846578e Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 16 Oct 2022 13:11:21 -0700 Subject: InputDriverRec: Resolve -Wmissing-field-initializers warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit void.c:222:1: warning: missing initializer for field ‘default_options’ of ‘InputDriverRec {aka struct _InputDriverRec}’ [-Wmissing-field-initializers] }; ^ In file included from void.c:39:0: /usr/include/xorg/xf86Xinput.h:83:18: note: ‘default_options’ declared here const char **default_options; ^~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith --- src/void.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/void.c b/src/void.c index 17bd38b..729fb41 100644 --- a/src/void.c +++ b/src/void.c @@ -213,12 +213,16 @@ xf86VoidInit(InputDriverPtr drv, } _X_EXPORT InputDriverRec VOID = { - 1, /* driver version */ - "void", /* driver name */ - NULL, /* identify */ - xf86VoidInit, /* pre-init */ - xf86VoidUninit, /* un-init */ - NULL, /* module */ + .driverVersion = 1, + .driverName = "void", + .Identify = NULL, + .PreInit = xf86VoidInit, + .UnInit = xf86VoidUninit, + .module = NULL, + .default_options = NULL, +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 21 + .capabilities = 0 +#endif }; /* -- cgit v1.2.3