This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Add ATTRIBUTE_UNUSED_RESULT to parser_state
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 5 Mar 2019 15:49:36 -0000
- Subject: [binutils-gdb] Add ATTRIBUTE_UNUSED_RESULT to parser_state
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=41e3300aa7d31ddb3618e160c6b7e61351ee2af5
commit 41e3300aa7d31ddb3618e160c6b7e61351ee2af5
Author: Tom Tromey <tromey@adacore.com>
Date: Tue Feb 26 14:39:55 2019 -0700
Add ATTRIBUTE_UNUSED_RESULT to parser_state
This applies ATTRIBUTE_UNUSED_RESULT to parser_state::release.
gdb/ChangeLog
2019-03-05 Tom Tromey <tromey@adacore.com>
* parser-defs.h (struct parser_state) <release>: Add
ATTRIBUTE_UNUSED_RESULT.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/parser-defs.h | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fae7ec0..f59292f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2019-03-05 Tom Tromey <tromey@adacore.com>
+ * parser-defs.h (struct parser_state) <release>: Add
+ ATTRIBUTE_UNUSED_RESULT.
+
+2019-03-05 Tom Tromey <tromey@adacore.com>
+
* utils.h (class gdb_argv) <release>: Add
ATTRIBUTE_UNUSED_RESULT.
* common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h
index 0d4bb82..5d2ee33 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. */