summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-04-28 11:13:28 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-05-06 17:45:38 -0700
commit9a7c831cb1be7c124eff9299d8046a57ac31bf4c (patch)
tree5998210213fd862d465e5f6ffd469f59edee82b3 /include
parentc8119b28ca20332d39153cdd1a297d62ed7d12cb (diff)
Clear up -Wcast-function-type warnings from NotImplemented()
difs/dispatch.c: In function ‘InitProcVectors’: difs/dispatch.c:1078:34: warning: cast between incompatible function types from ‘int (*)(void)’ to ‘void (*)(struct _Client *, int, void *)’ [-Wcast-function-type] 1078 | ReplySwapVector[i] = (ReplySwapFunc)NotImplemented; | ^ difs/dispatch.c:1082:30: warning: cast between incompatible function types from ‘int (*)(void)’ to ‘void (*)(fsError *, fsError *)’ [-Wcast-function-type] 1082 | EventSwapVector[i] = (EventSwapFunc)NotImplemented; | ^ (plus 10 more repeated warnings for difs/tables.c) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xfs/-/merge_requests/7>
Diffstat (limited to 'include')
-rw-r--r--include/difs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/difs.h b/include/difs.h
index 66c7f98..aa4fd85 100644
--- a/include/difs.h
+++ b/include/difs.h
@@ -77,7 +77,8 @@ extern int convert_props ( FontInfoPtr pinfo, fsPropInfo **props );
extern int QueryExtents ( ClientPtr client, ClientFontPtr cfp, int item_size, int nranges, Bool range_flag, pointer range_data );
extern int QueryBitmaps ( ClientPtr client, ClientFontPtr cfp, int item_size, fsBitmapFormat format, int nranges, Bool range_flag, pointer range_data );
-/* difs/main.c */
-extern int NotImplemented(void);
+/* difs/swaprep.c */
+extern void _X_COLD EventSwapNotImplemented(fsError *, fsError *);
+extern void _X_COLD ReplySwapNotImplemented(ClientPtr, int, void *);
#endif