diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-16 12:07:37 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-17 10:08:59 -0700 |
commit | b888251a032dfff5f7219334d2e8f256251fa98e (patch) | |
tree | 932844de9ab68bac92ec8a7f66503760fa16f792 | |
parent | 03fb2ae36be7314416b1c57b391039fb948468eb (diff) | |
download | xorg-driver-xf86-input-mouse-b888251a032dfff5f7219334d2e8f256251fa98e.tar.gz |
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>
-rw-r--r-- | src/mouse.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/mouse.c b/src/mouse.c index 4cb9de1..68620bd 100644 --- a/src/mouse.c +++ b/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 |