From 41e3300aa7d31ddb3618e160c6b7e61351ee2af5 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 26 Feb 2019 14:39:55 -0700 Subject: [PATCH] Add ATTRIBUTE_UNUSED_RESULT to parser_state This applies ATTRIBUTE_UNUSED_RESULT to parser_state::release. gdb/ChangeLog 2019-03-05 Tom Tromey * parser-defs.h (struct parser_state) : Add ATTRIBUTE_UNUSED_RESULT. --- gdb/ChangeLog | 5 +++++ gdb/parser-defs.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fae7ec0a804..f59292fb355 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-03-05 Tom Tromey + + * parser-defs.h (struct parser_state) : Add + ATTRIBUTE_UNUSED_RESULT. + 2019-03-05 Tom Tromey * utils.h (class gdb_argv) : Add 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.30.2