gdb: warn unused result for bfd IO functions
authorAlan Modra <amodra@gmail.com>
Wed, 9 Aug 2023 00:28:36 +0000 (09:58 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 11 Aug 2023 12:46:32 +0000 (22:16 +0930)
commit2db20b97f1dc3e5dce3d6ed74a8a62f0dede8c80
tree255302b03f963939d9de59310a2e9c6dbe2ee86a
parent19c5c1bb327dbb5c88cd52571896c56296f5a308
gdb: warn unused result for bfd IO functions

This fixes the compilation warnings introduced by my bfdio.c patch.

The removed bfd_seeks in coff_symfile_read date back to 1994, commit
7f4c859520, prior to which the file used stdio rather than bfd to read
symbols.  Since it now uses bfd to read the file there should be no
need to synchronise to bfd's idea of the file position.  I also fixed
a potential uninitialised memory access.

Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/coff-pe-read.c
gdb/coffread.c
gdb/dbxread.c
gdb/xcoffread.c