• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/elfutils/0005-really-make-werror-conditional-to-build-werror.patch
Baruch SiachBaruch Siach committed 27e0626e99e29 May 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 1d8f27d73df6369b19ddd6732960df0d4fdec338 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
​
6
Otherwise it will fail with an error message like this one:
7
​
8
elf_getarsym.c:290:9: error: 'n' may be used uninitialized in this
9
function [-Werror=maybe-uninitialized]
10
    arsym[n].as_name = NULL;
11
     ^
12
cc1: all warnings being treated as errors
13
​
14
[Vincent: tweak patch for 0.166]
15
​
16
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
17
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
18
---
19
 config/eu.am | 1 -
20
 1 file changed, 1 deletion(-)
21
​
22
diff --git a/config/eu.am b/config/eu.am
23
index 8fe1e259f9e2..c5a6209a4e04 100644
24
--- a/config/eu.am
25
+++ b/config/eu.am
26
@@ -71,7 +71,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
27
        -Wold-style-definition -Wstrict-prototypes \
28
        $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \
29
        $(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \
30
-       $(if $($(*F)_no_Werror),,-Werror) \
31
        $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
32
        $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \
33
        $($(*F)_CFLAGS)
34
-- 
35
2.11.0
36
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.