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

Submitted by Kevin Brace on Feb. 7, 2019, 2:56 a.m.

Details

Message ID 1549508197-7717-2-git-send-email-kevinbrace@gmx.com
State New
Headers show
Series "Eliminating compilation warnings" ( rev: 2 ) in X.org

Not browsing as part of any series.

Commit Message

Kevin Brace Feb. 7, 2019, 2:56 a.m.
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
---
 src/tdfx_driver.c | 5 -----
 src/tdfx_priv.c   | 4 ++++
 2 files changed, 4 insertions(+), 5 deletions(-)

Patch hide | download patch | download mbox

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