Add ATTRIBUTE_UNUSED_RESULT to scoped_mmap
authorTom Tromey <tromey@adacore.com>
Tue, 26 Feb 2019 21:46:40 +0000 (14:46 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 5 Mar 2019 15:48:40 +0000 (08:48 -0700)
commit083eef1f897e2fd13e4afa7b1a52090c83476f5c
tree688cad36eb2197c91033a417d85b86e45df25a91
parent3cabd438f3d18e1cb7afd4d2a82449883943e62f
Add ATTRIBUTE_UNUSED_RESULT to scoped_mmap

This applies ATTRIBUTE_UNUSED_RESULT to scoped_mmap::release and fixes
a couple of spots to comply.

gdb/ChangeLog
2019-03-05  Tom Tromey  <tromey@adacore.com>

* nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
* common/scoped_mmap.h (class scoped_mmap) <release>: Add
ATTRIBUTE_UNUSED_RESULT.
gdb/ChangeLog
gdb/common/scoped_mmap.h
gdb/nat/linux-btrace.c