[PATCH xserver 2/6] dmx: More const correctness

Adam Jackson ajax at redhat.com
Wed Sep 27 18:31:35 UTC 2017


Fixes several dozen cases like:

../hw/dmx/examples/ev.c: In function ‘main’:
../hw/dmx/examples/ev.c:147:29: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
                         tmp = "X";
                             ^

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 hw/dmx/examples/ev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/dmx/examples/ev.c b/hw/dmx/examples/ev.c
index b70016a45a..09e703ce75 100644
--- a/hw/dmx/examples/ev.c
+++ b/hw/dmx/examples/ev.c
@@ -56,7 +56,7 @@ main(int argc, char **argv)
     int fd = 0;
     int rc;
     int i, j;
-    char *tmp;
+    const char *tmp;
 
 #define test_bit(bit) (mask[(bit)/8] & (1 << ((bit)%8)))
 
-- 
2.13.5



More information about the xorg-devel mailing list