This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Commit "Introduce ATTRIBUTE_UNUSED_RESULT and use it" breaks gdb build
- From: Tom Tromey <tromey at adacore dot com>
- To: John Darrington <john at darrington dot wattle dot id dot au>
- Cc: gdb-patches at sourceware dot org, tromey at adacore dot com
- Date: Wed, 06 Mar 2019 07:58:50 -0700
- Subject: Re: Commit "Introduce ATTRIBUTE_UNUSED_RESULT and use it" breaks gdb build
- References: <20190306074924.lmwwwvk3ywpjkcfw@jocasta.intra>
>>>>> "John" == John Darrington <john@darrington.wattle.id.au> writes:
John> CXX remote-sim.o
John> /home/john/binutils-gdb/gdb/remote-sim.c: In function 'void gdbsim_target_open(const char*, int)':
John> /home/john/binutils-gdb/gdb/remote-sim.c:765:18: error: ignoring return value of 'char** gdb_argv::release()', declared with attribute warn_unused_result [-Werror=unused-result]
John> argv.release ();
John> ^
Sorry about that. I will check in a patch to fix this momentarily.
Someday I'd like gdb to either (1) get rid of remote-sim.c and talk to
the sims using the remote protocol, or (2) arrange to always compile the
bulk of remote-sim.c. (1) would be nice because it would also be more
multi-target-capable.
Tom