diff options
author | Andreas Gampe <agampe@google.com> | 2015-04-03 19:41:34 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-04-03 20:14:40 -0700 |
commit | ca71458862be8505330b7fd5649a062f31d143dc (patch) | |
tree | 7bc749056ab65906a147cc8e1d92e8be3ffea2cc /runtime/arch | |
parent | 9d231cc422b7b32d00bd43ca6993b2dd7e9989ea (diff) | |
download | art-ca71458862be8505330b7fd5649a062f31d143dc.tar.gz art-ca71458862be8505330b7fd5649a062f31d143dc.tar.bz2 art-ca71458862be8505330b7fd5649a062f31d143dc.zip |
ART: Add Clang's -Wused-but-marked-unused
Add detection of wrong unused annotations. Fix our codebase.
Change-Id: I85cc20f2eac71c1ec6c5c7cd6efb08454a629634
Diffstat (limited to 'runtime/arch')
-rw-r--r-- | runtime/arch/arm64/instruction_set_features_arm64.cc | 2 | ||||
-rw-r--r-- | runtime/arch/x86/instruction_set_features_x86.cc | 2 |
2 files changed, 2 insertions, 2 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. |