diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-05-18 21:56:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-19 22:32:06 +0100 |
commit | e1ec420cfb8cbbbf05905d32d447b6886ef04754 (patch) | |
tree | 11bb138261e77ea84de67157b8976fcdff0e8307 /meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch | |
parent | fd36a447d0da53e713d992b17ce86dd31ea63c67 (diff) | |
download | poky-e1ec420cfb8cbbbf05905d32d447b6886ef04754.tar.gz |
elfutils-0.148: Fix build with gcc6
(From OE-Core rev: c2668171f5d76bfea085ecf2fa7dfe1e42df1e63)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch b/meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch new file mode 100644 index 0000000000..b56a754f81 --- /dev/null +++ b/meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | Fix warnings found with gcc6 | ||
2 | |||
3 | | ../../elfutils-0.148/libdw/dwarf_siblingof.c: In function 'dwarf_siblingof': | ||
4 | | ../../elfutils-0.148/libdw/dwarf_siblingof.c:69:6: error: nonnull argument 'result' compared to NULL [-Werror=nonnull-compare] | ||
5 | | if (result == NULL) | ||
6 | | ^ | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | Upstream-Status: Inappropriate [ unmaintained ] | ||
10 | Index: elfutils-0.148/libdw/dwarf_siblingof.c | ||
11 | =================================================================== | ||
12 | --- elfutils-0.148.orig/libdw/dwarf_siblingof.c | ||
13 | +++ elfutils-0.148/libdw/dwarf_siblingof.c | ||
14 | @@ -66,9 +66,6 @@ dwarf_siblingof (die, result) | ||
15 | if (die == NULL) | ||
16 | return -1; | ||
17 | |||
18 | - if (result == NULL) | ||
19 | - return -1; | ||
20 | - | ||
21 | if (result != die) | ||
22 | result->addr = NULL; | ||
23 | |||