Add ATTRIBUTE_UNUSED_RESULT to parser_state
authorTom Tromey <tromey@adacore.com>
Tue, 26 Feb 2019 21:39:55 +0000 (14:39 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 5 Mar 2019 15:48:39 +0000 (08:48 -0700)
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.

gdb/ChangeLog
gdb/parser-defs.h

index fae7ec0..f59292f 100644 (file)
@@ -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.
index 0d4bb82..5d2ee33 100644 (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.  */