summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-15 13:57:24 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-17 11:03:36 -0800
commit79d488e49eb4db2797c6ab8818e7e694fa2e754f (patch)
tree132fbf3b14fa573fb773e11b2b72416c2a7480c0
parent68f5afaf18f9aa56fec37ceb358c20508ae7c002 (diff)
Fix -Wmissing-prototypes & -Wnested-externs warning for TCXHWCursorInit()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/tcx.h2
-rw-r--r--src/tcx_driver.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tcx.h b/src/tcx.h
index 509c10a..75ae246 100644
--- a/src/tcx.h
+++ b/src/tcx.h
@@ -66,4 +66,6 @@ typedef struct {
#define GET_TCX_FROM_SCRN(p) ((TcxPtr)((p)->driverPrivate))
+extern Bool TCXHWCursorInit(ScreenPtr pScreen);
+
#endif /* TCX_H */
diff --git a/src/tcx_driver.c b/src/tcx_driver.c
index 2e9c862..193a810 100644
--- a/src/tcx_driver.c
+++ b/src/tcx_driver.c
@@ -583,8 +583,6 @@ TCXScreenInit(SCREEN_INIT_ARGS_DECL)
/* Initialize HW cursor layer.
Must follow software cursor initialization*/
if (pTcx->HWCursor) {
- extern Bool TCXHWCursorInit(ScreenPtr pScreen);
-
if(!TCXHWCursorInit(pScreen)) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"Hardware cursor initialization failed\n");