summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch
blob: b56a754f81d2b27aec1ead542eb114507ef1b67d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Fix warnings found with gcc6

| ../../elfutils-0.148/libdw/dwarf_siblingof.c: In function 'dwarf_siblingof':
| ../../elfutils-0.148/libdw/dwarf_siblingof.c:69:6: error: nonnull argument 'result' compared to NULL [-Werror=nonnull-compare]
|    if (result == NULL)
|       ^

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Inappropriate [ unmaintained ]
Index: elfutils-0.148/libdw/dwarf_siblingof.c
===================================================================
--- elfutils-0.148.orig/libdw/dwarf_siblingof.c
+++ elfutils-0.148/libdw/dwarf_siblingof.c
@@ -66,9 +66,6 @@ dwarf_siblingof (die, result)
   if (die == NULL)
     return -1;
 
-  if (result == NULL)
-    return -1;
-
   if (result != die)
     result->addr = NULL;