summaryrefslogtreecommitdiff
path: root/src/context.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-05-07 14:44:30 +0300
committerDaniel Stone <daniel@fooishbar.org>2012-05-08 17:28:54 +0100
commit5eb0a70e61528adba4f14fe1c7e058cc01378c4c (patch)
tree896604cba9806db8dd8ca5e128b36ee5b1beb8c0 /src/context.c
parentfbfbf0aa4bf4c2ca89226f6048ba08a3813edea1 (diff)
Don't use typeof
clang complains with the xorg-macros warning flags: src/context.c:58:36: error: extension used [-Werror,-pedantic,-Wlanguage-extension-token] typeof(new_paths)); This was not entirely correct, too. So bring back the casts to the results of the allocation macros; might as well make them a bit more type safe. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/context.c')
-rw-r--r--src/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context.c b/src/context.c
index 9acb416..12aeed4 100644
--- a/src/context.c
+++ b/src/context.c
@@ -55,7 +55,7 @@ xkb_context_include_path_append(struct xkb_context *context, const char *path)
new_paths = uTypedRecalloc(context->include_paths,
context->size_include_paths,
new_size,
- typeof(new_paths));
+ char *);
if (!new_paths)
return 0;
context->include_paths = new_paths;