diff options
author | Jason Gerecke <killertofu@gmail.com> | 2017-11-13 16:14:14 -0800 |
---|---|---|
committer | Jason Gerecke <killertofu@gmail.com> | 2017-11-29 13:48:19 -0800 |
commit | b380cf93a448fa1636c413fff600a4869e6e7564 (patch) | |
tree | dd5dce53497c7c56ab03c22fbea6a6c90dfbccf9 | |
parent | 43a02abb08c23d25a10d695cea8c15abd74bc56b (diff) | |
download | xf86-input-wacom-b380cf93a448fa1636c413fff600a4869e6e7564.tar.gz |
xsetwacom: Don't drop "const" when performing a cast
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.gerecke@wacom.com>
Reviewed-by: Ping Cheng <ping.cheng@wacom.com>
-rw-r--r-- | tools/xsetwacom.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } /** |