summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2021-07-09 15:30:16 -0400
committerAdam Jackson <ajax@redhat.com>2021-08-17 16:02:44 -0400
commitc1138d8ec8d029de54261e355c0e5da0b001044a (patch)
treedb1fe998a64ad2864b29aa06bdf522c8e5ac71ca /Xi
parentf3a98334e6a56858853f3894b0f48ee040741410 (diff)
xinput: Silence a warning from gcc 11
[45/388] Compiling C object Xi/liblibxserver_xi.a.p/xichangehierarchy.c.o ../Xi/xichangehierarchy.c:61:32: warning: argument 1 of type ‘int[256]’ with mismatched bound [-Warray-parameter=] 61 | XISendDeviceHierarchyEvent(int flags[MAXDEVICES]) | ~~~~^~~~~~~~~~~~~~~~~ In file included from ../Xi/xichangehierarchy.c:54: ../Xi/xichangehierarchy.h:42:37: note: previously declared as ‘int[]’ 42 | void XISendDeviceHierarchyEvent(int flags[]); | ~~~~^~~~~~~
Diffstat (limited to 'Xi')
-rw-r--r--Xi/xichangehierarchy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/xichangehierarchy.h b/Xi/xichangehierarchy.h
index 8ec1915ae..649b654e5 100644
--- a/Xi/xichangehierarchy.h
+++ b/Xi/xichangehierarchy.h
@@ -39,6 +39,6 @@
int SProcXIChangeHierarchy(ClientPtr /* client */ );
int ProcXIChangeHierarchy(ClientPtr /* client */ );
-void XISendDeviceHierarchyEvent(int flags[]);
+void XISendDeviceHierarchyEvent(int flags[MAXDEVICES]);
#endif /* CHDEVHIER_H */