From 9cb299d384a1a257ab4127a70d41d33dc8eded06 Mon Sep 17 00:00:00 2001 From: Cevat Bostancioglu Date: Wed, 19 Jun 2019 21:00:16 +0300 Subject: kvmtool: Werror Disabled Patch Couple of compile time warnings(sizeof-pointer-memaccess, format-truncation) turned into errors before with Werror command, this patch disables this feature. Signed-off-by: Bruce Ashfield --- .../files/0003-kvmtool-Werror-disabled.patch | 24 ++++++++++++++++++++++ recipes-extended/kvmtool/kvmtool.bb | 1 + 2 files changed, 25 insertions(+) create mode 100644 recipes-extended/kvmtool/files/0003-kvmtool-Werror-disabled.patch diff --git a/recipes-extended/kvmtool/files/0003-kvmtool-Werror-disabled.patch b/recipes-extended/kvmtool/files/0003-kvmtool-Werror-disabled.patch new file mode 100644 index 00000000..4d2f2555 --- /dev/null +++ b/recipes-extended/kvmtool/files/0003-kvmtool-Werror-disabled.patch @@ -0,0 +1,24 @@ +From 377a09c16003eaa40f7f337127b10728ee0ade35 Mon Sep 17 00:00:00 2001 +From: Cevat Bostancioglu +Date: Wed, 19 Jun 2019 20:36:56 +0300 +Subject: [PATCH] WERROR override disabled. + +WERROR override causes gcc sizeof-pointer-memaccess, format-truncation errors. +--- + Makefile | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Makefile b/Makefile +index 030ff4e..fc5e177 100644 +--- a/Makefile ++++ b/Makefile +@@ -2,6 +2,7 @@ + # Define WERROR=0 to disable -Werror. + # + ++WERROR = 0 + ifeq ($(strip $(V)),) + E = @echo + Q = @ +-- +2.7.4 diff --git a/recipes-extended/kvmtool/kvmtool.bb b/recipes-extended/kvmtool/kvmtool.bb index cb09c66d..90ad8a1f 100644 --- a/recipes-extended/kvmtool/kvmtool.bb +++ b/recipes-extended/kvmtool/kvmtool.bb @@ -14,6 +14,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git \ file://0001-Avoid-pointers-for-address-of-packed-members.patch \ file://0001-kvmtool-9p-fixed-compilation-error.patch \ file://0002-kvmtool-add-EXTRA_CFLAGS-variable.patch \ + file://0003-kvmtool-Werror-disabled.patch \ " SRCREV = "0e1882a49f81cb15d328ef83a78849c0ea26eecc" -- cgit v1.2.3-54-g00ecf