summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yi Kong <yikong@google.com> 2023-12-14 15:58:53 +0900
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-12-18 12:15:25 +0000
commit5e3fa68e4e650f2961de692fa38d1d488c97d240 (patch)
tree3515c034a67154adbe3f5a16a9541a563b9642c0
parent4a0b8f1c9e4890c2c048ea2478b343086cf2f75b (diff)
Suppress -Wshadow warning
Test: presubmit Change-Id: I616444622b7b254ac208f1812f2dabfbff2bc138
-rw-r--r--libartbase/base/bit_table.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/libartbase/base/bit_table.h b/libartbase/base/bit_table.h
index eb97b54e9d..d6d03f3d6f 100644
--- a/libartbase/base/bit_table.h
+++ b/libartbase/base/bit_table.h
@@ -262,10 +262,11 @@ class BitTableBuilderBase {
class Entry {
public:
Entry() {
- // The definition of kNoValue here is for host and target debug builds which complain about
- // missing a symbol definition for BitTableBase<N>::kNovValue when optimization is off.
- static constexpr uint32_t kNoValue = BitTableBase<kNumColumns>::kNoValue;
- std::fill_n(data_, kNumColumns, kNoValue);
+ // The definition of kLocalNoValue here is for host and target debug builds which
+ // complain about missing a symbol definition for BitTableBase<N>::kNovValue when
+ // optimization is off.
+ static constexpr uint32_t kLocalNoValue = BitTableBase<kNumColumns>::kNoValue;
+ std::fill_n(data_, kNumColumns, kLocalNoValue);
}
Entry(std::initializer_list<uint32_t> values) {