[PATCH:xf86-video-xgi 04/19] Remove const marker for some variables.

Thomas Klausner wiz at NetBSD.org
Thu Aug 6 05:57:02 PDT 2015


They are used in non-const context. Fixes a couple of warnings:
warning: assignment discards 'const' qualifier from pointer target type

Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
---
 src/vb_table.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/vb_table.h b/src/vb_table.h
index b26427c..d49f233 100755
--- a/src/vb_table.h
+++ b/src/vb_table.h
@@ -3112,14 +3112,14 @@ static const XGI_ModeResInfoStruct XGI330_ModeResInfo[]=
  { 1152, 864, 8,16}
 };
 
-static const UCHAR XGI330_OutputSelect = 0x40;
-static const UCHAR XGI330_SoftSetting = 0x30;
-static const UCHAR XGI330_SR07 = 0x18;
-static const UCHAR XG21_DVOSetting = 0x00 ;
-static const UCHAR XG21_CR2E = 0x00 ;
-static const UCHAR XG21_CR2F = 0x00 ;
-static const UCHAR XG21_CR46 = 0x00 ;
-static const UCHAR XG21_CR47 = 0x00 ;
+static UCHAR XGI330_OutputSelect = 0x40;
+static UCHAR XGI330_SoftSetting = 0x30;
+static UCHAR XGI330_SR07 = 0x18;
+static UCHAR XG21_DVOSetting = 0x00 ;
+static UCHAR XG21_CR2E = 0x00 ;
+static UCHAR XG21_CR2F = 0x00 ;
+static UCHAR XG21_CR46 = 0x00 ;
+static UCHAR XG21_CR47 = 0x00 ;
 
 UCHAR XG27_CR97 = 0xC1 ;
 UCHAR XG27_SR36 = 0x30 ;
-- 
2.5.0



More information about the xorg-devel mailing list