[PATCH xf86-video-tdfx 2/2] Eliminate set but not used variable compilation warnings

Kevin Brace kevinbrace at gmx.com
Tue Dec 25 14:07:07 UTC 2018


Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
 src/tdfx_driver.c | 5 -----
 src/tdfx_priv.c   | 4 ++++
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/tdfx_driver.c b/src/tdfx_driver.c
index c7ed5f4..14b931c 100644
--- a/src/tdfx_driver.c
+++ b/src/tdfx_driver.c
@@ -2214,9 +2214,6 @@ TDFXScreenInit(SCREEN_INIT_ARGS_DECL) {
   TDFXPtr pTDFX;
   VisualPtr visual;
   BoxRec MemBox;
-#ifdef TDFXDRI
-  MessageType driFrom = X_DEFAULT;
-#endif
   int scanlines;
 
   TDFXTRACE("TDFXScreenInit start\n");
@@ -2328,10 +2325,8 @@ TDFXScreenInit(SCREEN_INIT_ARGS_DECL) {
    */
   if (!xf86ReturnOptValBool(pTDFX->Options, OPTION_DRI, TRUE) || pTDFX->NoAccel) {
       pTDFX->directRenderingEnabled = FALSE;
-      driFrom = X_CONFIG;
   } else if (pTDFX->texSize < 0) {
       pTDFX->directRenderingEnabled = FALSE;
-      driFrom = X_PROBED;
   } else {
       pTDFX->directRenderingEnabled = TDFXDRIScreenInit(pScreen);
   }
diff --git a/src/tdfx_priv.c b/src/tdfx_priv.c
index d9ad392..240f01c 100644
--- a/src/tdfx_priv.c
+++ b/src/tdfx_priv.c
@@ -240,11 +240,15 @@ void TDFXSwapContextFifo(ScreenPtr pScreen)
   ScrnInfoPtr pScrn;
   TDFXPtr pTDFX;
   int dummy, readPos;
+#if 0
   TDFXSAREAPriv *sPriv;
+#endif
 
   pScrn = xf86ScreenToScrn(pScreen);
   pTDFX=TDFXPTR(pScrn);
+#if 0
   sPriv=(TDFXSAREAPriv*)DRIGetSAREAPrivate(pScreen);
+#endif
   /* if (sPriv)
      ErrorF("In FifoPtr=%d FifoRead=%d\n", sPriv->fifoPtr, sPriv->fifoRead); */
 #if 1
-- 
2.7.4



More information about the xorg-devel mailing list