From 3c32eedb0c6e300c9701da42c6300a8ef7bde7fd Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 7 May 2023 12:09:34 -0700 Subject: 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 --- src/alp_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/alp_driver.c b/src/alp_driver.c index 387ec1f..7a6e93c 100644 --- a/src/alp_driver.c +++ b/src/alp_driver.c @@ -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) { -- cgit v1.2.3