[Spice-devel,warning,reduction,05/11] Silence a gcc "assignment discards 'const' qualifier" warning

Submitted by Jeremy White on Sept. 9, 2012, 11 p.m.

Details

Message ID 504D1F96.4050502@codeweavers.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Jeremy White Sept. 9, 2012, 11 p.m.
---
 src/qxl_driver.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 8e19bb8..360a245 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -2544,9 +2544,10 @@  qxl_identify (int flags)
 static void
 qxl_init_scrn (ScrnInfoPtr pScrn)
 {
+    static char driver_name[] = QXL_DRIVER_NAME;
     pScrn->driverVersion    = 0;
-    pScrn->driverName       = QXL_DRIVER_NAME;
-    pScrn->name             = QXL_DRIVER_NAME;
+    pScrn->driverName       = driver_name;
+    pScrn->name             = driver_name;
     pScrn->PreInit          = qxl_pre_init;
     pScrn->ScreenInit       = qxl_screen_init;
     pScrn->SwitchMode       = qxl_switch_mode;