summaryrefslogtreecommitdiff
path: root/src/void.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-16 13:11:21 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-16 13:17:20 -0700
commit094d363aa99de2c4747fc502bba848a82846578e (patch)
treec5bf7274e16c8265c5a3ffdbfb40dbd74577de62 /src/void.c
parentbe765e39fbfcf22b538731e0b5c51b626eecb4dc (diff)
InputDriverRec: Resolve -Wmissing-field-initializers warning
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 <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/void.c')
-rw-r--r--src/void.c16
1 files 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
};
/*