mirror of
https://github.com/X11Libre/xf86-video-savage.git
synced 2026-03-24 01:24:58 +00:00
Don't build unused code for HorizScaleFactor != 1
Clears gcc 13.2 warning:
savage_driver.c: In function ‘SavageModeInit’:
savage_driver.c:3731:13: warning: this condition has identical branches
[-Wduplicated-branches]
3731 | else if (pScrn->bitsPerPixel == 16)
| ^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
@@ -3726,6 +3726,7 @@ static Bool SavageModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
if (pScrn->bitsPerPixel == 8)
|
||||
psav->HorizScaleFactor = 1;
|
||||
else if (pScrn->bitsPerPixel == 16)
|
||||
@@ -3744,6 +3745,9 @@ static Bool SavageModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
|
||||
mode->CrtcHSkew *= 2;
|
||||
mode->CrtcHAdjusted = TRUE;
|
||||
}
|
||||
#else
|
||||
psav->HorizScaleFactor = 1;
|
||||
#endif
|
||||
|
||||
if (!vgaHWInit(pScrn, mode))
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user