| Index: base/memory/ref_counted.h
|
| diff --git a/base/memory/ref_counted.h b/base/memory/ref_counted.h
|
| index 35f515d23b8aed446d25882d77dc12b3858967f5..ba7e657389d1d88e9cdfe75282ee17e250ec2fde 100644
|
| --- a/base/memory/ref_counted.h
|
| +++ b/base/memory/ref_counted.h
|
| @@ -9,6 +9,7 @@
|
|
|
| #include "base/atomic_ref_count.h"
|
| #include "base/base_export.h"
|
| +#include "base/compiler_specific.h"
|
| #include "base/threading/thread_collision_warner.h"
|
|
|
| namespace base {
|
| @@ -260,7 +261,7 @@ class scoped_refptr {
|
| // If this object holds a NULL pointer, the return value is NULL.
|
| // After this operation, this object will hold a NULL pointer,
|
| // and will not own the object any more.
|
| - T* release() {
|
| + T* release() WARN_UNUSED_RESULT {
|
| T* retVal = ptr_;
|
| ptr_ = NULL;
|
| return retVal;
|
|
|