summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-15 13:06:00 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-17 10:53:44 -0800
commitbe81b93b6d376f5c7c5f56f9c34e65755d53357e (patch)
treecf52a72068029f3d60d7e726feb676e3b07da903
parent0a15c064cf4226c48f9c5847ab10dd028fa2ecbb (diff)
Fix prototype warnings for CG6HWCursorInit()
cg6_cursor.c:93:1: warning: no previous prototype for ‘CG6HWCursorInit’ [-Wmissing-prototypes] 93 | CG6HWCursorInit(ScreenPtr pScreen) | ^~~~~~~~~~~~~~~ cg6_driver.c: In function ‘CG6ScreenInit’: cg6_driver.c:517:21: warning: nested extern declaration of ‘CG6HWCursorInit’ [-Wnested-externs] 517 | extern Bool CG6HWCursorInit(ScreenPtr pScreen); | ^~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/cg6.h2
-rw-r--r--src/cg6_driver.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cg6.h b/src/cg6.h
index d6bc19e..bd148fe 100644
--- a/src/cg6.h
+++ b/src/cg6.h
@@ -93,4 +93,6 @@ extern int Cg6WindowPrivateIndex;
extern int cg6RopTable[];
+extern Bool CG6HWCursorInit(ScreenPtr pScreen);
+
#endif /* CG6_H */
diff --git a/src/cg6_driver.c b/src/cg6_driver.c
index 26fadc9..4c7583f 100644
--- a/src/cg6_driver.c
+++ b/src/cg6_driver.c
@@ -514,8 +514,6 @@ CG6ScreenInit(SCREEN_INIT_ARGS_DECL)
/* Initialize HW cursor layer.
Must follow software cursor initialization*/
if (pCg6->HWCursor) {
- extern Bool CG6HWCursorInit(ScreenPtr pScreen);
-
if(!CG6HWCursorInit(pScreen)) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"Hardware cursor initialization failed\n");