From 1224f07ba267b4288d1d6f3d8847f931af73981d Mon Sep 17 00:00:00 2001 From: Marcin Cieslak Date: Wed, 24 Sep 2014 10:30:57 +0000 Subject: [PATCH 06/10] Quick build fixes Signed-off-by: Marcin Cieslak --- Config.mk | 2 +- tools/libxc/Makefile | 4 ++-- tools/libxl/Makefile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Config.mk b/Config.mk index 015b90b..17b3f23 100644 --- a/Config.mk +++ b/Config.mk @@ -193,7 +193,7 @@ CFLAGS += -Wall -Wstrict-prototypes # Clang complains about macros that expand to 'if ( ( foo == bar ) ) ...' # and is over-zealous with the printf format lint # and is a bit too fierce about unused return values -CFLAGS-$(clang) += -Wno-parentheses -Wno-format -Wno-unused-value +CFLAGS-$(clang) += -Wno-parentheses -Wno-format -Wno-unused-value -Wno-unused-function -Wno-ignored-attributes $(call cc-option-add,HOSTCFLAGS,HOSTCC,-Wdeclaration-after-statement) $(call cc-option-add,CFLAGS,CC,-Wdeclaration-after-statement) diff --git a/tools/libxc/Makefile b/tools/libxc/Makefile index 3b04027..9281681 100644 --- a/tools/libxc/Makefile +++ b/tools/libxc/Makefile @@ -197,8 +197,8 @@ else zlib-options = $(ZLIB) endif -xc_dom_bzimageloader.o: CFLAGS += $(call zlib-options,D) -xc_dom_bzimageloader.opic: CFLAGS += $(call zlib-options,D) +#xc_dom_bzimageloader.o: CFLAGS += $(call zlib-options,D) +#xc_dom_bzimageloader.opic: CFLAGS += $(call zlib-options,D) libxenguest.so.$(MAJOR).$(MINOR): COMPRESSION_LIBS = $(call zlib-options,l) libxenguest.so.$(MAJOR).$(MINOR): $(GUEST_PIC_OBJS) libxenctrl.so diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile index 990414b..3659838 100644 --- a/tools/libxl/Makefile +++ b/tools/libxl/Makefile @@ -12,7 +12,7 @@ XLUMAJOR = 4.3 XLUMINOR = 0 CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \ - -Wno-declaration-after-statement -Wformat-nonliteral + -Wno-declaration-after-statement -Wno-format-nonliteral CFLAGS += -I. -fPIC ifeq ($(CONFIG_Linux),y) -- 2.0.2