OSDN Git Service

Use WARN_UNUSED consistently in ART.
authorRoland Levillain <rpl@google.com>
Tue, 18 Apr 2017 11:01:58 +0000 (12:01 +0100)
committerRoland Levillain <rpl@google.com>
Tue, 18 Apr 2017 11:01:58 +0000 (12:01 +0100)
Test: mmma art
Change-Id: I776840725f56258c45edfcfd165da61ab653f0b5

test/ti-agent/scoped_local_ref.h

index daa1583..ba9725f 100644 (file)
@@ -44,7 +44,7 @@ class ScopedLocalRef {
     }
   }
 
-  T release() __attribute__((warn_unused_result)) {
+  T release() WARN_UNUSED {
     T localRef = mLocalRef;
     mLocalRef = nullptr;
     return localRef;