From 0bb0443ee97c61dad1b9e595b0e421de3eed58b9 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sun, 6 Nov 2016 13:57:51 +0100 Subject: [PATCH] kvm-unit-tests: add patch to remove -Werror Fixes: http://autobuild.buildroot.net/results/52c02c68be6c0b3e907f7ed645bd2d18476ec4f3/ Signed-off-by: Thomas Petazzoni --- package/kvm-unit-tests/0001-remove-werror.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 package/kvm-unit-tests/0001-remove-werror.patch diff --git a/package/kvm-unit-tests/0001-remove-werror.patch b/package/kvm-unit-tests/0001-remove-werror.patch new file mode 100644 index 0000000000..058a640d76 --- /dev/null +++ b/package/kvm-unit-tests/0001-remove-werror.patch @@ -0,0 +1,17 @@ +Remove -Werror to avoid build failures + +Signed-off-by: Thomas Petazzoni + +Index: b/Makefile +=================================================================== +--- a/Makefile ++++ b/Makefile +@@ -45,7 +45,7 @@ + > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) + + CFLAGS += -g +-CFLAGS += $(autodepend-flags) -Wall -Werror -Wno-frame-address ++CFLAGS += $(autodepend-flags) -Wall -Wno-frame-address + frame-pointer-flag=-f$(if $(KEEP_FRAME_POINTER),no-,)omit-frame-pointer + fomit_frame_pointer := $(call cc-option, $(frame-pointer-flag), "") + fnostack_protector := $(call cc-option, -fno-stack-protector, "")