1From 2688a0238eaf825d6659c16c012db0c16f07e197 Mon Sep 17 00:00:00 2001 2From: Vicente Olivert Riera <Vincent.Riera@imgtec.com> 3Date: Mon, 29 May 2017 23:24:42 +0300 4Subject: [PATCH] Really make -Werror conditional to BUILD_WERROR 5 6Otherwise it will fail with an error message like this one: 7 8elf_getarsym.c:290:9: error: 'n' may be used uninitialized in this 9function [-Werror=maybe-uninitialized] 10 arsym[n].as_name = NULL; 11 ^ 12cc1: all warnings being treated as errors 13 14[Vincent: tweak patch for 0.166] 15[Bernd: rebased patch for 0.177] 16 17Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> 18Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> 19Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> 20--- 21 config/eu.am | 1 - 22 1 file changed, 1 deletion(-) 23 24diff --git a/config/eu.am b/config/eu.am 25index c2cc349ce876..99b368e09060 100644 26--- a/config/eu.am 27+++ b/config/eu.am 28@@ -73,7 +73,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \ 29 -Wold-style-definition -Wstrict-prototypes -Wtrampolines \ 30 $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \ 31 $(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \ 32- $(if $($(*F)_no_Werror),,-Werror) \ 33 $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \ 34 $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \ 35 $(if $($(*F)_no_Wpacked_not_aligned),-Wno-packed-not-aligned,) \ 36-- 372.17.1 38 39