From 4b8f1ecd3aa5a29ec1463ff88fee9db365f257dc Mon Sep 17 00:00:00 2001 From: Roland Levillain Date: Wed, 26 Aug 2015 18:34:03 +0100 Subject: Use ATTRIBUTE_UNUSED more. Use it in lieu of UNUSED(), which had some incorrect uses. Change-Id: If247dce58b72056f6eea84968e7196f0b5bef4da --- runtime/mirror/array-inl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'runtime/mirror/array-inl.h') diff --git a/runtime/mirror/array-inl.h b/runtime/mirror/array-inl.h index 3d540297e5..ec7d758ebb 100644 --- a/runtime/mirror/array-inl.h +++ b/runtime/mirror/array-inl.h @@ -100,9 +100,8 @@ class SetLengthVisitor { explicit SetLengthVisitor(int32_t length) : length_(length) { } - void operator()(Object* obj, size_t usable_size) const + void operator()(Object* obj, size_t usable_size ATTRIBUTE_UNUSED) const SHARED_REQUIRES(Locks::mutator_lock_) { - UNUSED(usable_size); // Avoid AsArray as object is not yet in live bitmap or allocation stack. Array* array = down_cast(obj); // DCHECK(array->IsArrayInstance()); -- cgit v1.2.3-59-g8ed1b