projects
/
platform
/
upstream
/
xf86-video-intel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
216beed
)
sna: Cast away compiler warning
author
Chris Wilson
<chris@chris-wilson.co.uk>
Tue, 10 Jun 2014 15:37:24 +0000
(16:37 +0100)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/src/sna/sna_display.c
b/src/sna/sna_display.c
index
e014b27
..
dcbe622
100644
(file)
--- a/
src/sna/sna_display.c
+++ b/
src/sna/sna_display.c
@@
-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,