summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2018-12-13 10:54:24 -0600
committerKevin Brace <kevinbrace@gmx.com>2018-12-13 10:54:24 -0600
commitfcc50b5af5a13083337984fc53e41cd704e84e15 (patch)
treeba8696a1d1bfa1b2af3b6cd2f2f74573b7b18429
parent69f6c305f41b1af500c4a40b7fb43a021ca8b255 (diff)
Eliminate unused variable compilation warnings
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r--src/savage_dri.c17
-rw-r--r--src/savage_driver.c2
-rw-r--r--src/savage_video.c6
3 files changed, 7 insertions, 18 deletions
diff --git a/src/savage_dri.c b/src/savage_dri.c
index 2d79943..e8a461b 100644
--- a/src/savage_dri.c
+++ b/src/savage_dri.c
@@ -54,23 +54,6 @@
#include "savage_dri.h"
#include "savage_sarea.h"
-static struct {
- int bpp;
- int redSize;
- int greenSize;
- int blueSize;
- int alphaSize;
- int redMask;
- int greenMask;
- int blueMask;
- int alphaMask;
- int depthSize;
-} SAVAGEVisuals[] = {
- { 16, 5, 6, 5, 0, 0x0000F800, 0x000007E0, 0x0000001F, 0, 16 },
- { 32, 8, 8, 8, 0, 0x00FF0000, 0x0000FF00, 0x000000FF, 0, 24 },
- { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
-};
-
static char SAVAGEKernelDriverName[] = "savage";
static char SAVAGEClientDriverName[] = "savage";
diff --git a/src/savage_driver.c b/src/savage_driver.c
index 3cda923..01fc0bc 100644
--- a/src/savage_driver.c
+++ b/src/savage_driver.c
@@ -1265,8 +1265,8 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags)
if(!psav->NoAccel) {
from = X_DEFAULT;
- char *strptr;
#ifdef HAVE_XAA_H
+ char *strptr;
if((strptr = (char *)xf86GetOptValString(psav->Options, OPTION_ACCELMETHOD))) {
if(!xf86NameCmp(strptr,"XAA")) {
from = X_CONFIG;
diff --git a/src/savage_video.c b/src/savage_video.c
index bc19bc7..c88317c 100644
--- a/src/savage_video.c
+++ b/src/savage_video.c
@@ -1037,7 +1037,9 @@ static void
SavageStopVideo(ScrnInfoPtr pScrn, pointer data, Bool shutdown)
{
SavagePortPrivPtr pPriv = (SavagePortPrivPtr)data;
+#ifdef SAVAGEDRI
SavagePtr psav = SAVPTR(pScrn);
+#endif
xf86ErrorFVerb(XVTRACE,"SavageStopVideo\n");
@@ -1777,7 +1779,9 @@ SavageDisplayVideo2000(
short drw_w, short drw_h
){
SavagePtr psav = SAVPTR(pScrn);
+#if 0
vgaHWPtr hwp = VGAHWPTR(pScrn);
+#endif
/*DisplayModePtr mode = pScrn->currentMode;*/
SavagePortPrivPtr pPriv = psav->adaptor->pPortPrivates[0].ptr;
#if 0
@@ -1909,7 +1913,9 @@ SavagePutImage(
){
SavagePortPrivPtr pPriv = (SavagePortPrivPtr)data;
SavagePtr psav = SAVPTR(pScrn);
+#ifdef SAVAGEDRI
ScreenPtr pScreen = pScrn->pScreen;
+#endif
INT32 x1, x2, y1, y2;
unsigned char *dst_start;
int new_size, offset, offsetV=0, offsetU=0;