summaryrefslogtreecommitdiff
path: root/src/keysym.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-04-03 14:26:04 +0100
committerDaniel Stone <daniel@fooishbar.org>2012-04-09 13:47:23 +0100
commit632d9f0336a3fb0721fbecc34b67e15d0ddbc69b (patch)
tree1ef3496096eeb3ce16c148e203d6d778f4d2546a /src/keysym.c
parent495d87b06d19380e22ca100b7e48a7c8ef5dea39 (diff)
downloadlibxkbcommon-632d9f0336a3fb0721fbecc34b67e15d0ddbc69b.tar.gz
libxkbcommon-632d9f0336a3fb0721fbecc34b67e15d0ddbc69b.tar.bz2
libxkbcommon-632d9f0336a3fb0721fbecc34b67e15d0ddbc69b.zip
Eliminate remaining gcc warnings
Various one-liners (mostly removing unused variables) to make the code safe for the full set of warnings used by the xorg macros. On Debian-based systems, flex generates incorrect code resulting in two warnings about yy_getcolumn and yy_setcolumn having no previous declaration despite being non-static. Fedora carries a patch to fix this, and a bug has been filed on Debian's flex to add the patch: http://bugs.debian.org/667027 Aside from this, it's now safe for --enable-strict-compilation. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'src/keysym.c')
-rw-r--r--src/keysym.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keysym.c b/src/keysym.c
index 7126d28..add0b83 100644
--- a/src/keysym.c
+++ b/src/keysym.c
@@ -157,7 +157,7 @@ xkb_string_to_keysym(const char *s)
* As a last ditch effort, try without. */
if (strncmp(s, "XF86_", 5) == 0) {
xkb_keysym_t ret;
- char *tmp = strdup(s);
+ tmp = strdup(s);
if (!tmp)
return XKB_KEYSYM_NO_SYMBOL;
memmove(&tmp[4], &tmp[5], strlen(s) - 5 + 1);