From b63b75b0f7262a4a28b6c1e147f81edcfebf37d2 Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Wed, 29 Jan 2014 14:56:20 -0600 Subject: cbfstool: Fix LzmaEnc.c and build with -Wshadow LzmaEnc.c was full of shadow definitions. Luckily, shadow definitions were not used after the scope in which they were redefined, so it is possible to just remove them. Tested by successfully booting qemu i440fx to grub2 payload. Change-Id: I01d44db59882114ffe64434b655b931f3beec8e2 Signed-off-by: Alexandru Gagniuc Reviewed-on: http://review.coreboot.org/5082 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Ronald G. Minnich --- util/cbfstool/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'util/cbfstool/Makefile') diff --git a/util/cbfstool/Makefile b/util/cbfstool/Makefile index 5064782820..0df5c97631 100644 --- a/util/cbfstool/Makefile +++ b/util/cbfstool/Makefile @@ -6,8 +6,7 @@ CFLAGS += -D_7ZIP_ST CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs CFLAGS += -Wstrict-aliasing -Werror -# You're going to have to fix the LzmaEnc.c first -- it's horrible. -# CFLAGS += -Wshadow +CFLAGS += -Wshadow LDFLAGS += -g BINARY:=$(obj)/cbfstool -- cgit v1.2.3