2018-06-08 08:21:57 +02:00
|
|
|
From 2688a0238eaf825d6659c16c012db0c16f07e197 Mon Sep 17 00:00:00 2001
|
2017-05-29 22:53:23 +02:00
|
|
|
From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
|
|
|
Date: Mon, 29 May 2017 23:24:42 +0300
|
|
|
|
Subject: [PATCH] Really make -Werror conditional to BUILD_WERROR
|
2014-11-11 12:47:44 +01:00
|
|
|
|
|
|
|
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]
|
2019-10-20 12:11:45 +02:00
|
|
|
[Bernd: rebased patch for 0.177]
|
2016-06-17 16:48:29 +02:00
|
|
|
|
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>
|
2019-10-20 12:11:45 +02:00
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
2017-05-29 22:53:23 +02:00
|
|
|
---
|
|
|
|
config/eu.am | 1 -
|
|
|
|
1 file changed, 1 deletion(-)
|
2014-11-11 12:47:44 +01:00
|
|
|
|
2017-05-29 22:53:23 +02:00
|
|
|
diff --git a/config/eu.am b/config/eu.am
|
2018-06-08 08:21:57 +02:00
|
|
|
index c2cc349ce876..99b368e09060 100644
|
2017-05-29 22:53:23 +02:00
|
|
|
--- a/config/eu.am
|
|
|
|
+++ b/config/eu.am
|
2018-06-08 08:21:57 +02:00
|
|
|
@@ -73,7 +73,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
|
2019-10-20 12:11:45 +02:00
|
|
|
-Wold-style-definition -Wstrict-prototypes -Wtrampolines \
|
2016-06-17 16:48:29 +02:00
|
|
|
$(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \
|
2017-05-29 22:53:23 +02:00
|
|
|
$(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_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)) \
|
2018-06-08 08:21:57 +02:00
|
|
|
$(if $($(*F)_no_Wpacked_not_aligned),-Wno-packed-not-aligned,) \
|
2017-05-29 22:53:23 +02:00
|
|
|
--
|
2018-06-08 08:21:57 +02:00
|
|
|
2.17.1
|
2017-05-29 22:53:23 +02:00
|
|
|
|