rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 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 | |