Source: xf86-video-glamo
Version: 0.0.0+20110719.gitcb9ed170-1
Severity: important
Tags: patch
Control: block 753781 by -1

xf86-video-glamo fails to build against xserver 1.16, which we plan
to upload to sid soon, see #753781.

The build error is:

.../../src/glamo-driver.c: In function 'GlamoPreInit':
.../../src/glamo-driver.c:499:32: error: assignment discards 'const' qualifier 
from pointer target type [-Werror]
     pGlamo->jbt6k74_state_path = xf86GetOptValString(pGlamo->Options,
                                ^
cc1: all warnings being treated as errors

The attached patch fixes the build failure.

Emilio
--- a/src/glamo.h
+++ b/src/glamo.h
@@ -145,7 +145,7 @@
 #endif
 
 #ifdef JBT6K74_SET_STATE
-    char *jbt6k74_state_path;
+    const char *jbt6k74_state_path;
     char saved_jbt6k74_state[14];
 #endif
 

Reply via email to