Fix compile time warnings about the possibility of using uninitialised fields in...
authorNick Clifton <nickc@redhat.com>
Fri, 20 Mar 2020 11:33:07 +0000 (11:33 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 20 Mar 2020 11:33:07 +0000 (11:33 +0000)
commit5844b4657aa2b9eb52aecc5a6338324032fb6eae
tree0c7808d2a31d5adb511061c1f9ba9844e0020473
parent3d98c46092341c1373d960d0a66ca502d5b7ee7f
Fix compile time warnings about the possibility of using uninitialised fields in the Elf_Internal_Chdr structure when building readelf.

* readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
(process_section_headers): Check the return value from
get_compression_header.
(dump_section_as_strings): Likewise.
(dump_section_as_bytes): Likewise.
(load_specific_debug_section): Likewise.
binutils/ChangeLog
binutils/readelf.c