aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-02-26 14:52:47 -0700
committerTom Tromey <tromey@adacore.com>2019-03-05 08:48:40 -0700
commit88a774b9984e42c492ddcf4e4b4b0170ac803576 (patch)
tree706671c31c602eb071e6835cf45ac5210599b875 /gdb/remote.c
parent4e4a8b932b7ae8e239eebb597fbb6cfcb7278a64 (diff)
downloadgdb-88a774b9984e42c492ddcf4e4b4b0170ac803576.zip
gdb-88a774b9984e42c492ddcf4e4b4b0170ac803576.tar.gz
gdb-88a774b9984e42c492ddcf4e4b4b0170ac803576.tar.bz2
Add ATTRIBUTE_UNUSED_RESULT to scoped_remote_fd::release
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.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 36136e3..c98c5cb 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;