InputDriverRec: Fix -Wmissing-field-initializers warning

mouse.c:185:1: warning: missing initializer for field ‘default_options’ of ‘InputDriverRec {aka struct _InputDriverRec}’ [-Wmissing-field-initializers]
 };
 ^
In file included from mouse.c:63: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>
This commit is contained in:
Alan Coopersmith
2022-10-16 12:07:37 -07:00
parent 03fb2ae36b
commit b888251a03

View File

@@ -176,12 +176,18 @@ static Bool autoGood(MouseDevPtr pMse);
#undef MOUSE
_X_EXPORT InputDriverRec MOUSE = {
1,
"mouse",
NULL,
MousePreInit,
NULL,
NULL,
.driverVersion = 1,
.driverName = "mouse",
.Identify = NULL,
.PreInit = MousePreInit,
.UnInit = NULL,
.module = NULL,
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
.default_options = NULL,
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 21
.capabilities = 0
#endif
#endif
};
#define RETRY_COUNT 4