From: Alan Modra Date: Sat, 12 Aug 2023 23:26:12 +0000 (+0930) Subject: Re: gdb: warn unused result for bfd IO functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec2479e820c32ef443382a622a1d555a71730f64;p=binutils-gdb.git Re: gdb: warn unused result for bfd IO functions Add a missing return statement. --- diff --git a/gdb/coff-pe-read.c b/gdb/coff-pe-read.c index 0d76ebdbfce..56137ac4dd0 100644 --- a/gdb/coff-pe-read.c +++ b/gdb/coff-pe-read.c @@ -402,6 +402,7 @@ read_pe_exported_syms (minimal_symbol_reader &reader, if (fail || bfd_seek (dll, secptr1, SEEK_SET) != 0 || bfd_read (sname, sizeof (sname), dll) != sizeof (sname)) + return maybe_print_debug_msg (); if ((strcmp (sname, ".edata") == 0) || (vaddr <= export_opthdrrva && export_opthdrrva < vaddr + vsize))