mirror of
https://github.com/X11Libre/xf86-input-mouse.git
synced 2026-03-24 01:24:06 +00:00
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:
18
src/mouse.c
18
src/mouse.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user