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.
This commit is contained in:
Tom Tromey
2019-02-26 14:39:55 -07:00
parent 18cb7c9f3a
commit 41e3300aa7
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
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

View File

@@ -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. */