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
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;
 
til" RDEPENDS_${PN}_class-native = "font-util-native" inherit allarch PE = "1" PR = "${INC_PR}.3" SRC_URI[md5sum] = "6d25f64796fef34b53b439c2e9efa562" SRC_URI[sha256sum] = "8b453b2aae1cfa8090009ca037037b8c5e333550651d5a158b7264ce1d472c9a"