Apparently, xf86GetOptValString changed their return type from char
to const char between X Server 1.15 and 1.16. In particular, X Server
commit e1e01d2e33c632e395d7e396f73fba8ae606b15a made the change. This
commit will suppress the compilation warning.

Signed-off-by: Kevin Brace <[email protected]>
---
 src/trident_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/trident_driver.c b/src/trident_driver.c
index 5771311..d958268 100644
--- a/src/trident_driver.c
+++ b/src/trident_driver.c
@@ -1010,7 +1010,7 @@ TRIDENTPreInit(ScrnInfoPtr pScrn, int flags)
     ClockRangePtr clockRanges;
     Bool ddcLoaded = FALSE;
     xf86MonPtr pMon = NULL;
-    char *s;
+    const char *s;
     Bool tmp_bool;
 
     /* Allocate the TRIDENTRec driverPrivate */
-- 
2.7.4

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to