Introduce ATTRIBUTE_UNUSED_RESULT and use it
authorTom Tromey <tromey@adacore.com>
Tue, 26 Feb 2019 21:39:01 +0000 (14:39 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 5 Mar 2019 15:48:39 +0000 (08:48 -0700)
commit18cb7c9f3add62ff598f0551a767af8aaa04b07e
tree81fa217c13e517539762f3d2d0bd8a19bc3edbc4
parent093f70ccd3d8366de1faae3335bbe2eebd2a75d4
Introduce ATTRIBUTE_UNUSED_RESULT and use it

This introduces the new ATTRIBUTE_UNUSED_RESULT define, and applies it
to gdb_argv::release.

gdb/ChangeLog
2019-03-05  Tom Tromey  <tromey@adacore.com>

* utils.h (class gdb_argv) <release>: Add
ATTRIBUTE_UNUSED_RESULT.
* common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
gdb/ChangeLog
gdb/common/common-defs.h
gdb/utils.h