aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-02-26 14:44:29 -0700
committerTom Tromey <tromey@adacore.com>2019-03-05 08:48:40 -0700
commit3cabd438f3d18e1cb7afd4d2a82449883943e62f (patch)
treeb004c45fc6952bdeb010a2d4caf7e5d4016805f5 /gdb/common
parent41e3300aa7d31ddb3618e160c6b7e61351ee2af5 (diff)
downloadgdb-3cabd438f3d18e1cb7afd4d2a82449883943e62f.zip
gdb-3cabd438f3d18e1cb7afd4d2a82449883943e62f.tar.gz
gdb-3cabd438f3d18e1cb7afd4d2a82449883943e62f.tar.bz2
Add ATTRIBUTE_UNUSED_RESULT to scoped_fd
This applies ATTRIBUTE_UNUSED_RESULT to scoped_fd::release. gdb/ChangeLog 2019-03-05 Tom Tromey <tromey@adacore.com> * common/scoped_fd.h (class scoped_fd) <release>: Add ATTRIBUTE_UNUSED_RESULT.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/scoped_fd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/common/scoped_fd.h b/gdb/common/scoped_fd.h
index bdd22f5..c4a494b 100644
--- a/gdb/common/scoped_fd.h
+++ b/gdb/common/scoped_fd.h
@@ -56,7 +56,7 @@ public:
DISABLE_COPY_AND_ASSIGN (scoped_fd);
- int release () noexcept
+ ATTRIBUTE_UNUSED_RESULT int release () noexcept
{
int fd = m_fd;
m_fd = -1;