diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-16 13:11:21 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-16 13:17:20 -0700 |
commit | 094d363aa99de2c4747fc502bba848a82846578e (patch) | |
tree | c5bf7274e16c8265c5a3ffdbfb40dbd74577de62 | |
parent | be765e39fbfcf22b538731e0b5c51b626eecb4dc (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>
-rw-r--r-- | src/void.c | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -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 }; /* |