1 Really make -Werror conditional to BUILD_WERROR
3 Otherwise it will fail with an error message like this one:
5 elf_getarsym.c:290:9: error: 'n' may be used uninitialized in this
6 function [-Werror=maybe-uninitialized]
7 arsym[n].as_name = NULL;
9 cc1: all warnings being treated as errors
11 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
12 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
14 diff -rup a/config/eu.am b/config/eu.am
15 --- a/config/eu.am 2014-11-10 16:19:14.356031479 +0000
16 +++ b/config/eu.am 2014-11-10 16:21:11.702072011 +0000
17 @@ -35,7 +35,6 @@ LD_AS_NEEDED = @LD_AS_NEEDED@
18 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
19 AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I..
20 AM_CFLAGS = -std=gnu99 -Wall -Wshadow \
21 - $(if $($(*F)_no_Werror),,-Werror) \
22 $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \
23 $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2) \