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

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 2688a0238eaf825d6659c16c012db0c16f07e197 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]
  13. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
  14. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
  15. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  16. ---
  17. config/eu.am | 1 -
  18. 1 file changed, 1 deletion(-)
  19. diff --git a/config/eu.am b/config/eu.am
  20. index c2cc349ce876..99b368e09060 100644
  21. --- a/config/eu.am
  22. +++ b/config/eu.am
  23. @@ -73,7 +73,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
  24. -Wold-style-definition -Wstrict-prototypes -Wtrampolines \
  25. $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \
  26. $(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \
  27. - $(if $($(*F)_no_Werror),,-Werror) \
  28. $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
  29. $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \
  30. $(if $($(*F)_no_Wpacked_not_aligned),-Wno-packed-not-aligned,) \
  31. --
  32. 2.17.1