This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 2/7] Add ATTRIBUTE_UNUSED_RESULT to parser_state
- From: Tom Tromey <tromey at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at adacore dot com>
- Date: Wed, 27 Feb 2019 15:18:09 -0700
- Subject: [PATCH 2/7] Add ATTRIBUTE_UNUSED_RESULT to parser_state
- References: <20190227221814.17661-1-tromey@adacore.com>
This applies ATTRIBUTE_UNUSED_RESULT to parser_state::release.
gdb/ChangeLog
2019-02-27 Tom Tromey <tromey@adacore.com>
* parser-defs.h (struct parser_state) <release>: Add
ATTRIBUTE_UNUSED_RESULT.
---
gdb/ChangeLog | 5 +++++
gdb/parser-defs.h | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h
index 0d4bb820d7b..5d2ee331c05 100644
--- a/gdb/parser-defs.h
+++ b/gdb/parser-defs.h
@@ -48,7 +48,7 @@ struct parser_state
/* Resize the allocated expression to the correct size, and return
it as an expression_up -- passing ownership to the caller. */
- expression_up release ();
+ ATTRIBUTE_UNUSED_RESULT expression_up release ();
/* The size of the expression above. */
--
2.20.1