diff options
author | Tom Tromey <tromey@adacore.com> | 2019-02-26 14:39:55 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-03-05 08:48:39 -0700 |
commit | 41e3300aa7d31ddb3618e160c6b7e61351ee2af5 (patch) | |
tree | dc94a99ed9f9d425dc9fa39a6b2b8e3225d4bcf4 | |
parent | 18cb7c9f3add62ff598f0551a767af8aaa04b07e (diff) | |
download | gdb-41e3300aa7d31ddb3618e160c6b7e61351ee2af5.zip gdb-41e3300aa7d31ddb3618e160c6b7e61351ee2af5.tar.gz gdb-41e3300aa7d31ddb3618e160c6b7e61351ee2af5.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/parser-defs.h | 2 |
2 files changed, 6 insertions, 1 deletions
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. */ |