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.
This commit is contained in:
parent
4e4a8b932b
commit
88a774b998
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue