GCC warns that we're droping the "const" attribute in one of our casts.
Looking at the affected function, it is obvious that the cast is entirely
unnecessary and can be dropped entirely.

Signed-off-by: Jason Gerecke <jason.gere...@wacom.com>
---
 tools/xsetwacom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index a94d1f9..44e8a14 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -985,7 +985,7 @@ static const char *convert_specialkey(const char 
*specialkey)
                        m++;
        }
 
-       return m->converted ? m->converted : (char*)specialkey;
+       return m->converted ? m->converted : specialkey;
 }
 
 /**
-- 
2.15.0


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to