From: Dale Weiler Date: Thu, 7 Jun 2012 14:59:57 +0000 (-0400) Subject: fixed shadow issue X-Git-Tag: 0.1-rc1~485^2~5 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=911c2bddb661b0b8c788ed6c564f08680c6f8125 fixed shadow issue --- diff --git a/Makefile b/Makefile index a4216a5..6014e31 100644 --- a/Makefile +++ b/Makefile @@ -18,8 +18,7 @@ ifeq ($(CC), clang) -Wno-missing-noreturn \ -Wno-ignored-qualifiers \ -Wno-unused-macros \ - -Wno-format-nonliteral \ - -Wno-shadow + -Wno-format-nonliteral endif OBJ = lex.o \ diff --git a/typedef.c b/typedef.c index 063a501..731ab7f 100644 --- a/typedef.c +++ b/typedef.c @@ -71,7 +71,7 @@ int typedef_add(lex_file *file, const char *from, const char *to) { return -100; } else { /* search the typedefs for it (typedef-a-typedef?) */ - typedef_node *find = typedef_table[typedef_hash(from)]; + find = typedef_table[typedef_hash(from)]; if (find) { typedef_table[hash] = mem_a(sizeof(typedef_node)); if (typedef_table[hash])