[xf86-video-apm,3/4] Eliminate unused variable compilation warnings

Submitted by Kevin Brace on Dec. 17, 2018, 10 p.m.

Details

Message ID 1545084036-32413-3-git-send-email-kevinbrace@gmx.com
State New
Series "Series without cover letter"
Headers show

Commit Message

Kevin Brace Dec. 17, 2018, 10 p.m.
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
---
 src/apm_dga.c    | 1 -
 src/apm_driver.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/apm_dga.c b/src/apm_dga.c
index 6e92123..a2ff48e 100644
--- a/src/apm_dga.c
+++ b/src/apm_dga.c
@@ -236,7 +236,6 @@  ApmDGAInit(ScreenPtr pScreen)
 static Bool
 ApmSetMode(ScrnInfoPtr pScrn, DGAModePtr pMode)
 {
-    int		index = pScrn->pScreen->myNum;
     APMDECL(pScrn);
 
     if (!pMode) { /* restore the original mode */
diff --git a/src/apm_driver.c b/src/apm_driver.c
index 92da51c..4be81de 100644
--- a/src/apm_driver.c
+++ b/src/apm_driver.c
@@ -355,7 +355,7 @@  ApmPreInit(ScrnInfoPtr pScrn, int flags)
     EntityInfoPtr	pEnt;
     vgaHWPtr		hwp;
     MessageType		from;
-    char		*mod = NULL, *req = NULL;
+    char		*mod = NULL;
     const char		*s;
     ClockRangePtr	clockRanges;
     int			i;