2014-11-11 12:47:44 +01:00
|
|
|
Really make -Werror conditional to BUILD_WERROR
|
|
|
|
|
|
|
|
Otherwise it will fail with an error message like this one:
|
|
|
|
|
|
|
|
elf_getarsym.c:290:9: error: 'n' may be used uninitialized in this
|
|
|
|
function [-Werror=maybe-uninitialized]
|
|
|
|
arsym[n].as_name = NULL;
|
|
|
|
^
|
|
|
|
cc1: all warnings being treated as errors
|
|
|
|
|
2016-06-17 16:48:29 +02:00
|
|
|
[Vincent: tweak patch for 0.166]
|
|
|
|
|
2014-11-11 12:47:44 +01:00
|
|
|
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
|
|
|
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
|
|
|
|
|
|
|
diff -rup a/config/eu.am b/config/eu.am
|
2016-06-17 16:48:29 +02:00
|
|
|
--- a/config/eu.am 2016-03-02 16:25:38.000000000 +0000
|
|
|
|
+++ b/config/eu.am 2016-06-17 15:05:08.270974835 +0100
|
|
|
|
@@ -65,7 +65,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -W
|
|
|
|
-Wold-style-definition -Wstrict-prototypes \
|
|
|
|
$(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \
|
|
|
|
$(NULL_DEREFERENCE_WARNING) \
|
2014-11-11 12:47:44 +01:00
|
|
|
- $(if $($(*F)_no_Werror),,-Werror) \
|
2016-06-17 16:48:29 +02:00
|
|
|
$(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
|
|
|
|
$(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \
|
2014-11-11 12:47:44 +01:00
|
|
|
$($(*F)_CFLAGS)
|