From 3cabd438f3d18e1cb7afd4d2a82449883943e62f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 26 Feb 2019 14:44:29 -0700 Subject: Add ATTRIBUTE_UNUSED_RESULT to scoped_fd This applies ATTRIBUTE_UNUSED_RESULT to scoped_fd::release. gdb/ChangeLog 2019-03-05 Tom Tromey * common/scoped_fd.h (class scoped_fd) : Add ATTRIBUTE_UNUSED_RESULT. --- gdb/common/scoped_fd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/common') 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; -- cgit v1.1