From: Keir Fraser Date: Wed, 9 Apr 2008 12:52:52 +0000 (+0100) Subject: hvmloader: Build with -Werror. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14231^2~50 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=656217ee9c73aba7dab5c5399ecd69c164e44c86;p=xen.git hvmloader: Build with -Werror. Signed-off-by: Keir Fraser --- diff --git a/tools/firmware/Rules.mk b/tools/firmware/Rules.mk index 58b45dcec6..47db139592 100644 --- a/tools/firmware/Rules.mk +++ b/tools/firmware/Rules.mk @@ -6,6 +6,8 @@ CFLAGS := include $(XEN_ROOT)/tools/Rules.mk +CFLAGS += -Werror + # Disable PIE/SSP if GCC supports them. They can break us. CFLAGS += $(call cc-option,$(CC),-nopie,) CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) diff --git a/tools/firmware/rombios/32bit/tcgbios/tcgbios.c b/tools/firmware/rombios/32bit/tcgbios/tcgbios.c index 00f929f6c5..e36ca37845 100644 --- a/tools/firmware/rombios/32bit/tcgbios/tcgbios.c +++ b/tools/firmware/rombios/32bit/tcgbios/tcgbios.c @@ -923,7 +923,7 @@ uint32_t HashLogExtendEvent32(struct hleei_short *hleei_s, struct hleeo *hleeo, struct hlei hlei ; /* HashLogEventInput block */ struct hleo hleo; /* HashLogEventOutput block */ struct hleei_long *hleei_l = (struct hleei_long *)hleei_s; - int sh; + int sh = 0; uint32_t logdataptr; if (TCG_IsShutdownPreBootInterface() != 0) {