diff options
author | 2023-05-16 10:32:54 +0000 | |
---|---|---|
committer | 2023-05-22 10:36:39 +0000 | |
commit | 78f3c72e8948087352788997a70854dee613352c (patch) | |
tree | 306db3c15bc4b7af149bcf3e07be533e50679b88 /runtime/arch/instruction_set_features.h | |
parent | dc771261232c2ff702373f396a5a7fe586e2f0a6 (diff) |
Use C++17's [[maybe_unused]] attribute in ART
Bug: 169680875
Test: mmm art
Change-Id: Ic0cc320891c42b07a2b5520a584d2b62052e7235
Diffstat (limited to 'runtime/arch/instruction_set_features.h')
-rw-r--r-- | runtime/arch/instruction_set_features.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/arch/instruction_set_features.h b/runtime/arch/instruction_set_features.h index 1f41b39023..1cb0fbb758 100644 --- a/runtime/arch/instruction_set_features.h +++ b/runtime/arch/instruction_set_features.h @@ -146,8 +146,8 @@ class InstructionSetFeatures { std::string* error_msg) const = 0; // Add run-time detected architecture specific features in sub-classes. - virtual std::unique_ptr<const InstructionSetFeatures> - AddRuntimeDetectedFeatures(const InstructionSetFeatures *features ATTRIBUTE_UNUSED) const; + virtual std::unique_ptr<const InstructionSetFeatures> AddRuntimeDetectedFeatures( + [[maybe_unused]] const InstructionSetFeatures* features) const; private: DISALLOW_COPY_AND_ASSIGN(InstructionSetFeatures); |