summaryrefslogtreecommitdiff
path: root/sys-kernel/linux-image-redcore-lts/files/4.19-0002-Fix-Werror-build-failure-in-tools.patch
blob: 0e6135a7d083aeab95ac4a04086d16ad61d2d273 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Nur a/tools/objtool/Makefile b/tools/objtool/Makefile
--- a/tools/objtool/Makefile	2019-06-11 11:20:57.000000000 +0100
+++ b/tools/objtool/Makefile	2019-06-19 19:43:15.055901403 +0100
@@ -35,7 +35,7 @@
 	    -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi \
 	    -I$(srctree)/tools/objtool/arch/$(ARCH)/include
 WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed
-CFLAGS   += -Werror $(WARNINGS) $(KBUILD_HOSTCFLAGS) -g $(INCLUDES) $(LIBELF_FLAGS)
+CFLAGS   += $(WARNINGS) $(KBUILD_HOSTCFLAGS) -g $(INCLUDES) $(LIBELF_FLAGS)
 LDFLAGS  += $(LIBELF_LIBS) $(LIBSUBCMD) $(KBUILD_HOSTLDFLAGS)
 
 # Allow old libelf to be used: