mirror of
https://github.com/X11Libre/xf86-video-cirrus.git
synced 2026-03-24 01:24:45 +00:00
GetAccelPitchValues: mark accelWidths as const
Suggested by cppcheck: alp_driver.c:413:6: style: Variable 'accelWidths' can be declared with const [constVariable] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
@@ -410,11 +410,11 @@ GetAccelPitchValues(ScrnInfoPtr pScrn)
|
||||
|
||||
/* The only line pitches the accelerator supports */
|
||||
#if 1
|
||||
int accelWidths[] = { 640, 768, 800, 960, 1024, 1152, 1280,
|
||||
const int accelWidths[] = { 640, 768, 800, 960, 1024, 1152, 1280,
|
||||
1600, 1920, 2048, 0 };
|
||||
#else
|
||||
int accelWidths[] = { 512, 576, 640, 768, 800, 960, 1024, 1152,
|
||||
1280, 1536, 1600, 1920, 2048, 0 };
|
||||
const int accelWidths[] = { 512, 576, 640, 768, 800, 960, 1024, 1152,
|
||||
1280, 1536, 1600, 1920, 2048, 0 };
|
||||
#endif
|
||||
|
||||
switch (pCir->Chipset) {
|
||||
|
||||
Reference in New Issue
Block a user