[5/7] Add ATTRIBUTE_UNUSED_RESULT to macro_buffer

Message ID 20190227221814.17661-6-tromey@adacore.com
State New, archived
Headers

Commit Message

Tom Tromey Feb. 27, 2019, 10:18 p.m. UTC
  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(-)
  

Patch

diff --git a/gdb/macroexp.c b/gdb/macroexp.c
index 0e8e85cdf23..a588cc836fe 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);