Hi,
My host gcc is "gcc version 4.6.1 (Debian 4.6.1-4)". Remove -Wshadow can walk around this problem.

diff --git a/util/cbfstool/Makefile.inc b/util/cbfstool/Makefile.inc
index 1aa9d76..a55475b 100644
--- a/util/cbfstool/Makefile.inc
+++ b/util/cbfstool/Makefile.inc
@@ -42,7 +42,7 @@ rmodobj += elfheaders.o
 rmodobj += xdr.o

 TOOLCFLAGS ?= -std=c99 -Werror -Wall -Wextra
-TOOLCFLAGS += -Wcast-qual -Wmissing-prototypes -Wredundant-decls -Wshadow
+TOOLCFLAGS += -Wcast-qual -Wmissing-prototypes -Wredundant-decls
 TOOLCFLAGS += -Wstrict-prototypes -Wwrite-strings
 TOOLCPPFLAGS ?= -D_DEFAULT_SOURCE # memccpy() from string.h
 TOOLCPPFLAGS += -D_POSIX_C_SOURCE=200809L # strdup() from string.h


On 5/13/2015 5:03 PM, WANG Siyuan wrote:
Hi,
When I build olivehillplus, I got this error:

fmd_scanner.l: In function ‘parse_integer’:
fmd_scanner.l:47: error: declaration of ‘input’ shadows a global declaration
<stdout>:1192: error: shadowed declaration is here
fmd_scanner.l: In function ‘copy_string’:
fmd_scanner.l:74: error: declaration of ‘input’ shadows a global declaration
<stdout>:1192: error: shadowed declaration is here
make: *** [build/util/cbfstool/fmd_scanner.o] Error 1

Where is the problem? Thank you very much.


--
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to