[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg-devel
Subject:    [PATCH xserver 2/6] dmx: More const correctness
From:       Adam Jackson <ajax () redhat ! com>
Date:       2017-09-27 18:31:35
Message-ID: 20170927183139.20731-2-ajax () redhat ! com
[Download RAW message or body]

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@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

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic