From 911c2bddb661b0b8c788ed6c564f08680c6f8125 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Thu, 7 Jun 2012 10:59:57 -0400 Subject: [PATCH] fixed shadow issue --- Makefile | 3 +-- typedef.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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]) -- 2.39.2