Re: Commit "Introduce ATTRIBUTE_UNUSED_RESULT and use it" breaks gdb build

Tom Tromey
2019-03-06T14:58:54Z

>>>>> "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