diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-16 16:30:18 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-16 16:30:18 -0800 |
commit | a2b65b4bca30a9805e4757e5e05860aa00d56483 (patch) | |
tree | d32fb1d265837e2ca5c91d1ca5f0668d50d25497 | |
parent | ead68c88de422c82004715403776ec0d21c6d6aa (diff) |
Fix 4 -Wunused-variable warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/voodoo_dga.c | 1 | ||||
-rw-r--r-- | src/voodoo_hardware.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/voodoo_dga.c b/src/voodoo_dga.c index 76da169..a13c9e7 100644 --- a/src/voodoo_dga.c +++ b/src/voodoo_dga.c @@ -90,7 +90,6 @@ static Bool VoodooDGAOpenFramebuffer(ScrnInfoPtr pScrn, char **DeviceName, static Bool VoodooDGASetMode(ScrnInfoPtr pScrn, DGAModePtr pDGAMode) { DisplayModePtr pMode; - int scrnIdx = pScrn->pScreen->myNum; if (pDGAMode) { pMode = pDGAMode->mode; diff --git a/src/voodoo_hardware.c b/src/voodoo_hardware.c index c360263..8dcfb63 100644 --- a/src/voodoo_hardware.c +++ b/src/voodoo_hardware.c @@ -84,8 +84,8 @@ static Bool VoodooSetupForCPUToScreenTexture(ScrnInfoPtr pScrn, int op, static void VoodooSubsequentCPUToScreenTexture(ScrnInfoPtr pScrn, int dstx, int dsty, int srcx, int srcy, int width, int height); -#endif static int debug = 0; +#endif /* * Big endian might need to byteswap these ? @@ -866,6 +866,7 @@ static void VoodooReadWriteBank(ScreenPtr pScreen, int bank) } #endif +#ifdef HAVE_XAA_H /* * We normally want to load all four rop variants at once so * the table is the 16bits for the lot equal. @@ -912,6 +913,7 @@ static CARD16 tropxlate[16] = { 0xAA77, /* GXnand */ 0xAAFF /* GXset */ }; +#endif void VoodooSync(ScrnInfoPtr pScrn) |