lua-bit32: new package
[buildroot-gz.git] / package / elfutils / 0005-really-make-werror-conditional-to-build-werror.patch
blobaa4d12d6a2190c0400bcb4021e217922f16f0bae
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 [Vincent: tweak patch for 0.166]
13 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
14 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
16 diff -rup a/config/eu.am b/config/eu.am
17 --- a/config/eu.am 2016-03-02 16:25:38.000000000 +0000
18 +++ b/config/eu.am 2016-06-17 15:05:08.270974835 +0100
19 @@ -65,7 +65,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -W
20 -Wold-style-definition -Wstrict-prototypes \
21 $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \
22 $(NULL_DEREFERENCE_WARNING) \
23 - $(if $($(*F)_no_Werror),,-Werror) \
24 $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
25 $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \
26 $($(*F)_CFLAGS)