[5/7] Add ATTRIBUTE_UNUSED_RESULT to macro_buffer
Commit Message
This applies ATTRIBUTE_UNUSED_RESULT to macro_buffer::release.
2019-02-27 Tom Tromey <tromey@adacore.com>
* macroexp.c (struct macro_buffer) <release>: Add
ATTRIBUTE_UNUSED_RESULT.
---
gdb/ChangeLog | 5 +++++
gdb/macroexp.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
@@ -130,7 +130,7 @@ struct macro_buffer
/* Release the text of the buffer to the caller, which is now
responsible for freeing it. */
- char *release ()
+ ATTRIBUTE_UNUSED_RESULT char *release ()
{
gdb_assert (! shared);
gdb_assert (size);