mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
https://sourceware.org/pipermail/elfutils-devel/2026q2/009226.html Rebased patch 0002 due to upstream commits: https://sourceware.org/git/?p=elfutils.git;a=commitdiff;h=1fb2723c504588b60c3f796d91b535b50e0f4fd0 https://sourceware.org/git/?p=elfutils.git;a=commitdiff;h=45bf7360166b30465d5aebb7822f93c26f370b1b Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Julien Olivain <ju.o@free.fr>
41 lines
1.5 KiB
Diff
41 lines
1.5 KiB
Diff
From 064b74d5e19847794072781405eafe8dfbfca331 Mon Sep 17 00:00:00 2001
|
|
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
|
|
|
|
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
|
|
|
|
[Vincent: tweak patch for 0.166]
|
|
[Dario: make the patch to be applied with fuzz factor 0]
|
|
|
|
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
|
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
|
[Bernd: rebased patch for 0.195]
|
|
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
|
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
|
|
---
|
|
config/eu.am | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/config/eu.am b/config/eu.am
|
|
index e6c241f9d88a..cad1baa27a5f 100644
|
|
--- a/config/eu.am
|
|
+++ b/config/eu.am
|
|
@@ -135,7 +135,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
|
|
$(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \
|
|
$(USE_AFTER_FREE3_WARNING) $(MISSING_PARAMETER_NAME_WARNING) \
|
|
$(DEPRECATED_NON_PROTOTYPE_WARNING) $(FREE_LABELS_WARNING) \
|
|
- $(if $($(*F)_no_Werror),,-Werror) \
|
|
$(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
|
|
$(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \
|
|
$(if $($(*F)_no_Wpacked_not_aligned),$(NO_PACKED_NOT_ALIGNED_WARNING),) \
|
|
--
|
|
2.43.0
|
|
|