From f0dd5de63c41f4b1f5e54ce197349cb55b0d693b Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Sat, 15 Mar 2008 20:23:08 -0300 Subject: [PATCH] Compile warning fix. Declare TCXHWCursorInit() in tcx.h. --- src/tcx.h | 2 ++ src/tcx_driver.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tcx.h b/src/tcx.h index 4996cfd..300ffd4 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 15bb305..0a39407 100644 --- a/src/tcx_driver.c +++ b/src/tcx_driver.c @@ -588,8 +588,6 @@ TCXScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) /* 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"); -- 1.5.3.2