sna: Cast away compiler warning
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Jun 2014 15:37:24 +0000 (16:37 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Jun 2014 20:31:05 +0000 (21:31 +0100)
sna_display.c: In function 'has_user_backlight_override':
sna_display.c:595:3: warning: return discards 'const' qualifier from pointer target type [enabled by default]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_display.c

index e014b27..dcbe622 100644 (file)
@@ -592,7 +592,7 @@ has_user_backlight_override(xf86OutputPtr output)
 
        DBG(("%s(%s) requested %s\n", __FUNCTION__, output->name, str));
        if (*str == '\0')
-               return str;
+               return (char *)str;
 
        if (backlight_exists(str) == BL_NONE) {
                xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,