summaryrefslogtreecommitdiff
path: root/src/mga_dacG.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-04-28 16:26:38 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-04-28 16:26:38 -0700
commit951fa4d49c28f069e5a29ed407c8ec8dd678b4cd (patch)
tree2b775327f059a0c3e6ad13f87bf7215efc112556 /src/mga_dacG.c
parent32d6cc797103fbfa663b86718decebbb8d0fefcc (diff)
Fix -Wold-style-declaration warnings
mga_dac3026.c:77:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] const static unsigned char MGADACregs[] = { ^~~~~ mga_dac3026.c:103:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] const static unsigned char MGADACbpp8[DACREGSIZE] = { ^~~~~ mga_dac3026.c:108:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] const static unsigned char MGADACbpp16[DACREGSIZE] = { ^~~~~ mga_dac3026.c:124:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] const static unsigned char MGADACbpp24[DACREGSIZE] = { ^~~~~ mga_dac3026.c:129:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] const static unsigned char MGADACbpp32[DACREGSIZE] = { ^~~~~ mga_dacG.c: In function ‘MGAGInit’: mga_dacG.c:1118:2: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] const static unsigned char initDAC[] = { ^~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/mga_dacG.c')
-rw-r--r--src/mga_dacG.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mga_dacG.c b/src/mga_dacG.c
index ce0f0aa..b8fd9df 100644
--- a/src/mga_dacG.c
+++ b/src/mga_dacG.c
@@ -1115,7 +1115,7 @@ MGAGInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
/*
* initial values of the DAC registers
*/
- const static unsigned char initDAC[] = {
+ static const unsigned char initDAC[] = {
/* 0x00: */ 0, 0, 0, 0, 0, 0, 0x00, 0,
/* 0x08: */ 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x10: */ 0, 0, 0, 0, 0, 0, 0, 0,