diff options
author | Andreas Gampe <agampe@google.com> | 2015-04-06 20:36:03 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-06 20:36:03 +0000 |
commit | e8aae00fa400efbb8f998a5dbf68eb42810889c1 (patch) | |
tree | f14ec179e84f7b122fadd6e4abaf066d1843634a /runtime | |
parent | 81aedc7b2f2e8b990d74d6dfa5303ab2447327a1 (diff) | |
parent | ca71458862be8505330b7fd5649a062f31d143dc (diff) | |
download | art-e8aae00fa400efbb8f998a5dbf68eb42810889c1.tar.gz art-e8aae00fa400efbb8f998a5dbf68eb42810889c1.tar.bz2 art-e8aae00fa400efbb8f998a5dbf68eb42810889c1.zip |
Merge "ART: Add Clang's -Wused-but-marked-unused"
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/arch/arm64/instruction_set_features_arm64.cc | 2 | ||||
-rw-r--r-- | runtime/arch/x86/instruction_set_features_x86.cc | 2 | ||||
-rw-r--r-- | runtime/hprof/hprof.cc | 2 | ||||
-rw-r--r-- | runtime/interpreter/unstarted_runtime.cc | 4 | ||||
-rw-r--r-- | runtime/trace.cc | 3 |
5 files changed, 6 insertions, 7 deletions
diff --git a/runtime/arch/arm64/instruction_set_features_arm64.cc b/runtime/arch/arm64/instruction_set_features_arm64.cc index f8a9f9d6aa..1f2ce02852 100644 --- a/runtime/arch/arm64/instruction_set_features_arm64.cc +++ b/runtime/arch/arm64/instruction_set_features_arm64.cc @@ -25,7 +25,7 @@ namespace art { const Arm64InstructionSetFeatures* Arm64InstructionSetFeatures::FromVariant( - const std::string& variant ATTRIBUTE_UNUSED, std::string* error_msg ATTRIBUTE_UNUSED) { + const std::string& variant, std::string* error_msg) { const bool smp = true; // Conservative default. // Look for variants that need a fix for a53 erratum 835769. diff --git a/runtime/arch/x86/instruction_set_features_x86.cc b/runtime/arch/x86/instruction_set_features_x86.cc index a12773dc9c..782ee00140 100644 --- a/runtime/arch/x86/instruction_set_features_x86.cc +++ b/runtime/arch/x86/instruction_set_features_x86.cc @@ -26,7 +26,7 @@ namespace art { const X86InstructionSetFeatures* X86InstructionSetFeatures::FromVariant( - const std::string& variant ATTRIBUTE_UNUSED, std::string* error_msg ATTRIBUTE_UNUSED, + const std::string& variant, std::string* error_msg ATTRIBUTE_UNUSED, bool x86_64) { bool known_variant = false; bool smp = true; // Conservative default. diff --git a/runtime/hprof/hprof.cc b/runtime/hprof/hprof.cc index df1e0d2bce..d6a6595127 100644 --- a/runtime/hprof/hprof.cc +++ b/runtime/hprof/hprof.cc @@ -222,7 +222,7 @@ class EndianOutput { HandleU4List(values, count); length_ += count * sizeof(uint32_t); } - virtual void UpdateU4(size_t offset ATTRIBUTE_UNUSED, uint32_t new_value ATTRIBUTE_UNUSED) { + virtual void UpdateU4(size_t offset, uint32_t new_value ATTRIBUTE_UNUSED) { DCHECK_LE(offset, length_ - 4); } void AddU8List(const uint64_t* values, size_t count) { diff --git a/runtime/interpreter/unstarted_runtime.cc b/runtime/interpreter/unstarted_runtime.cc index b1e419312b..9af81025d0 100644 --- a/runtime/interpreter/unstarted_runtime.cc +++ b/runtime/interpreter/unstarted_runtime.cc @@ -718,7 +718,7 @@ static void UnstartedJNIFloatIntBitsToFloat(Thread* self ATTRIBUTE_UNUSED, result->SetI(args[0]); } -static void UnstartedJNIObjectInternalClone(Thread* self ATTRIBUTE_UNUSED, +static void UnstartedJNIObjectInternalClone(Thread* self, mirror::ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver, uint32_t* args ATTRIBUTE_UNUSED, @@ -727,7 +727,7 @@ static void UnstartedJNIObjectInternalClone(Thread* self ATTRIBUTE_UNUSED, result->SetL(receiver->Clone(self)); } -static void UnstartedJNIObjectNotifyAll(Thread* self ATTRIBUTE_UNUSED, +static void UnstartedJNIObjectNotifyAll(Thread* self, mirror::ArtMethod* method ATTRIBUTE_UNUSED, mirror::Object* receiver, uint32_t* args ATTRIBUTE_UNUSED, diff --git a/runtime/trace.cc b/runtime/trace.cc index ea0a642855..5375dc0d3c 100644 --- a/runtime/trace.cc +++ b/runtime/trace.cc @@ -243,8 +243,7 @@ static void GetSample(Thread* thread, void* arg) SHARED_LOCKS_REQUIRED(Locks::mu the_trace->CompareAndUpdateStackTrace(thread, stack_trace); } -static void ClearThreadStackTraceAndClockBase(Thread* thread ATTRIBUTE_UNUSED, - void* arg ATTRIBUTE_UNUSED) { +static void ClearThreadStackTraceAndClockBase(Thread* thread, void* arg ATTRIBUTE_UNUSED) { thread->SetTraceClockBase(0); std::vector<mirror::ArtMethod*>* stack_trace = thread->GetStackTraceSample(); thread->SetStackTraceSample(NULL); |