diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-01-30 12:19:04 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-01-30 12:24:47 +0000 |
commit | 166e8e9e5d79f64e30230d9520b9f6cafa7dd0d0 (patch) | |
tree | 88b297e50360aac2397cc776cf2d31f9f305e615 | |
parent | ca2d9e69d08f5438a34dbf55ab058f5c4c3b3650 (diff) |
sna: Silence a compiler warning for mismatching const strings
sna_display.c: In function 'preferred_mode':
sna_display.c:3393:7: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
mode = xf86GetOptValString(output->options, OPTION_PREFERRED_MODE);
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 2829af14..a6e6f686 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -3388,7 +3388,7 @@ static void crtc_init_gamma(xf86CrtcPtr crtc) { } static const char *preferred_mode(xf86OutputPtr output) { - char *mode; + const char *mode; mode = xf86GetOptValString(output->options, OPTION_PREFERRED_MODE); if (mode) |