aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-02-26 14:52:05 -0700
committerTom Tromey <tromey@adacore.com>2019-03-05 08:48:40 -0700
commit4e4a8b932b7ae8e239eebb597fbb6cfcb7278a64 (patch)
treef28172bf7dd3cd2b56046424fb3f8ebf4c99e54f /gdb
parent083eef1f897e2fd13e4afa7b1a52090c83476f5c (diff)
downloadgdb-4e4a8b932b7ae8e239eebb597fbb6cfcb7278a64.zip
gdb-4e4a8b932b7ae8e239eebb597fbb6cfcb7278a64.tar.gz
gdb-4e4a8b932b7ae8e239eebb597fbb6cfcb7278a64.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/macroexp.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a420e2a..f26c943 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
* common/scoped_mmap.h (class scoped_mmap) <release>: Add
ATTRIBUTE_UNUSED_RESULT.
diff --git a/gdb/macroexp.c b/gdb/macroexp.c
index 0e8e85c..a588cc8 100644
--- a/gdb/macroexp.c
+++ b/gdb/macroexp.c
@@ -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);