Skip to content

Fix -Wold-style-declaration warnings

Alan Coopersmith requested to merge alanc/xf86-video-mga:misc into master
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[] = {
  ^~~~~

Merge request reports