Add ATTRIBUTE_UNUSED_RESULT to scoped_remote_fd::release
authorTom Tromey <tromey@adacore.com>
Tue, 26 Feb 2019 21:52:47 +0000 (14:52 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 5 Mar 2019 15:48:40 +0000 (08:48 -0700)
This applies ATTRIBUTE_UNUSED_RESULT to scoped_remote_fd::release.

gdb/ChangeLog
2019-03-05  Tom Tromey  <tromey@adacore.com>

* remote.c (class scoped_remote_fd) <release>: Add
ATTRIBUTE_UNUSED_RESULT.

gdb/ChangeLog
gdb/remote.c

index f26c9438ff76fa67668fb304dac33743c6b99c8c..6ed91e2894caa3f0c8135f73f1873c64362f647e 100644 (file)
@@ -1,3 +1,8 @@
+2019-03-05  Tom Tromey  <tromey@adacore.com>
+
+       * remote.c (class scoped_remote_fd) <release>: Add
+       ATTRIBUTE_UNUSED_RESULT.
+
 2019-03-05  Tom Tromey  <tromey@adacore.com>
 
        * macroexp.c (struct macro_buffer) <release>: Add
index 36136e3e3ee617159f6331e76796ef7a79ff130d..c98c5cb2ebf351cf9aa8cab01a5efe29cf5093dd 100644 (file)
@@ -12410,7 +12410,7 @@ public:
   DISABLE_COPY_AND_ASSIGN (scoped_remote_fd);
 
   /* Release ownership of the file descriptor, and return it.  */
-  int release () noexcept
+  ATTRIBUTE_UNUSED_RESULT int release () noexcept
   {
     int fd = m_fd;
     m_fd = -1;
This page took 0.031183 seconds and 4 git commands to generate.