[PATCH xf86-video-mga 2/2] Add const qualifier to char *from in MGAdoDDC
Alan Coopersmith
alan.coopersmith at oracle.com
Thu May 24 21:44:55 PDT 2012
Only used to store arguments to pass as printf %s strings to xf86DrvMsg
Fixes gcc warnings:
mga_driver.c: In function 'MGAdoDDC':
mga_driver.c:1338:7: warning: assignment discards qualifiers from pointer target type
mga_driver.c:1343:11: warning: assignment discards qualifiers from pointer target type
mga_driver.c:1351:8: warning: assignment discards qualifiers from pointer target type
mga_driver.c:1359:8: warning: assignment discards qualifiers from pointer target type
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
src/mga_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mga_driver.c b/src/mga_driver.c
index 806692a..0c04d74 100644
--- a/src/mga_driver.c
+++ b/src/mga_driver.c
@@ -1263,7 +1263,7 @@ MGAdoDDC(ScrnInfoPtr pScrn)
vgaHWPtr hwp;
MGAPtr pMga;
xf86MonPtr MonInfo = NULL;
- char *from = NULL;
+ const char *from = NULL;
hwp = VGAHWPTR(pScrn);
pMga = MGAPTR(pScrn);
--
1.7.9.2
More information about the xorg-devel
mailing list