Add ATTRIBUTE_UNUSED_RESULT to scoped_fd
authorTom Tromey <tromey@adacore.com>
Tue, 26 Feb 2019 21:44:29 +0000 (14:44 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 5 Mar 2019 15:48:40 +0000 (08:48 -0700)
commit3cabd438f3d18e1cb7afd4d2a82449883943e62f
treeb004c45fc6952bdeb010a2d4caf7e5d4016805f5
parent41e3300aa7d31ddb3618e160c6b7e61351ee2af5
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.
gdb/ChangeLog
gdb/common/scoped_fd.h