Add ATTRIBUTE_UNUSED_RESULT to macro_buffer
This applies ATTRIBUTE_UNUSED_RESULT to macro_buffer::release. gdb/ChangeLog 2019-03-05 Tom Tromey <tromey@adacore.com> * macroexp.c (struct macro_buffer) <release>: Add ATTRIBUTE_UNUSED_RESULT.
This commit is contained in:
parent
083eef1f89
commit
4e4a8b932b
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2019-03-05 Tom Tromey <tromey@adacore.com>
|
||||
|
||||
* macroexp.c (struct macro_buffer) <release>: Add
|
||||
ATTRIBUTE_UNUSED_RESULT.
|
||||
|
||||
2019-03-05 Tom Tromey <tromey@adacore.com>
|
||||
|
||||
* nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue