0002-Really-make-Werror-conditional-to-BUILD_WERROR.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 064b74d5e19847794072781405eafe8dfbfca331 Mon Sep 17 00:00:00 2001
  2. From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
  3. Date: Mon, 29 May 2017 23:24:42 +0300
  4. Subject: [PATCH] Really make -Werror conditional to BUILD_WERROR
  5. Otherwise it will fail with an error message like this one:
  6. elf_getarsym.c:290:9: error: 'n' may be used uninitialized in this
  7. function [-Werror=maybe-uninitialized]
  8. arsym[n].as_name = NULL;
  9. ^
  10. cc1: all warnings being treated as errors
  11. [Vincent: tweak patch for 0.166]
  12. [Bernd: rebased patch for 0.177 & 0.189]
  13. [Dario: make the patch to be applied with fuzz factor 0]
  14. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
  15. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
  16. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  17. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
  18. ---
  19. config/eu.am | 1 -
  20. 1 file changed, 1 deletion(-)
  21. diff --git a/config/eu.am b/config/eu.am
  22. index e6c241f9d88a..cad1baa27a5f 100644
  23. --- a/config/eu.am
  24. +++ b/config/eu.am
  25. @@ -99,7 +99,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
  26. $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \
  27. $(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \
  28. $(USE_AFTER_FREE3_WARNING) \
  29. - $(if $($(*F)_no_Werror),,-Werror) \
  30. $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
  31. $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \
  32. $(if $($(*F)_no_Wpacked_not_aligned),$(NO_PACKED_NOT_ALIGNED_WARNING),) \
  33. --
  34. 2.43.0