]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
fixed shadow issue
authorDale Weiler <killfieldengine@gmail.com>
Thu, 7 Jun 2012 14:59:57 +0000 (10:59 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Thu, 7 Jun 2012 14:59:57 +0000 (10:59 -0400)
Makefile
typedef.c

index a4216a54546c4a7c519bf3de1d36fcfc0080497e..6014e311f0771971d4c6af3c44710d23ad23c1cc 100644 (file)
--- 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       \
index 063a501f15f80f7eafc8a7073e503e6ec863bc79..731ab7f2ff1ff545f7cd21fca770957aa13717e3 100644 (file)
--- 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])