[6/7] Add ATTRIBUTE_UNUSED_RESULT to scoped_remote_fd::release

Message ID 20190227221814.17661-7-tromey@adacore.com
State New, archived
Headers

Commit Message

Tom Tromey Feb. 27, 2019, 10:18 p.m. UTC
  This applies ATTRIBUTE_UNUSED_RESULT to scoped_remote_fd::release.

2019-02-27  Tom Tromey  <tromey@adacore.com>

	* remote.c (class scoped_remote_fd) <release>: Add
	ATTRIBUTE_UNUSED_RESULT.
---
 gdb/ChangeLog | 5 +++++
 gdb/remote.c  | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
  

Patch

diff --git a/gdb/remote.c b/gdb/remote.c
index 36136e3e3ee..c98c5cb2ebf 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -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;