diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-07-30 13:19:27 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-07-30 13:26:14 +0100 |
commit | 208282d31657f2b718e151397d16b307cdf8f77b (patch) | |
tree | 14bedb1393d638bc6920bff68f948b9bb64af200 /src/sna/sna_display.c | |
parent | 7e3445a330340c1aa2ca5a13d838344438336749 (diff) |
Suppress a bunch of compiler warnings for using constant strings
We want these allocated in ro memory even if the antique API complains.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_display.c')
-rw-r--r-- | src/sna/sna_display.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 7e47e738..17e2de15 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -655,11 +655,11 @@ done: sna_output->backlight_max = sna_output_backlight_get_max(output); sna_output->backlight_active_level = sna_output_backlight_get(output); switch (best_type) { - case INT_MAX: best_iface = "user"; from = X_CONFIG; break; - case FIRMWARE: best_iface = "firmware"; break; - case PLATFORM: best_iface = "platform"; break; - case RAW: best_iface = "raw"; break; - default: best_iface = "unknown"; break; + case INT_MAX: best_iface = (char *)"user"; from = X_CONFIG; break; + case FIRMWARE: best_iface = (char *)"firmware"; break; + case PLATFORM: best_iface = (char *)"platform"; break; + case RAW: best_iface = (char *)"raw"; break; + default: best_iface = (char *)"unknown"; break; } xf86DrvMsg(output->scrn->scrnIndex, from, "found backlight control interface %s (type '%s')\n", |