Silence -Wcast-qual warnings
authorRan Benita <ran234@gmail.com>
Fri, 23 Mar 2012 22:29:33 +0000 (00:29 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Tue, 27 Mar 2012 13:15:11 +0000 (14:15 +0100)
commit813ddf255d076efe65c953ff5dc6521839ab052b
tree115827089ab31c80e34734c7dfe187e0ae59d274
parentf08ce9b71b08e8db846780b7187124da53ba1c3c
Silence -Wcast-qual warnings

There are some cases where we must free a string with a const qualifier.
Add a macro UNCONSTIFY to trick the compiler into silencing the warning
in the cases where we know what we're doing.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/alloc.c
src/malloc.c
src/utils.h
src/xkbcomp/indicators.c
src/xkbcomp/keycodes.c
src/xkbcomp/symbols.c