projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add ATTRIBUTE_UNUSED_RESULT to ref_ptr::release
[deliverable/binutils-gdb.git]
/
gdb
/
common
/
gdb_ref_ptr.h
diff --git
a/gdb/common/gdb_ref_ptr.h
b/gdb/common/gdb_ref_ptr.h
index b104556cc5f4251cb46a027a061a33cce6419933..c31c9a2e58b8bceb5df556b37d3f740438a9ac9f 100644
(file)
--- a/
gdb/common/gdb_ref_ptr.h
+++ b/
gdb/common/gdb_ref_ptr.h
@@
-135,7
+135,7
@@
class ref_ptr
/* Return this instance's referent, and stop managing this
reference. The caller is now responsible for the ownership of
the reference. */
- T *release ()
+
ATTRIBUTE_UNUSED_RESULT
T *release ()
{
T *result = m_obj;
This page took
0.037024 seconds
and
4
git commands to generate.