Enable -Wshadow
Enable -Wshadow for upstream pigweed to improve compatibility with
projects that decide to enable this flag.
Change-Id: I7e1ce22f245e719ec78118370e591437abe07f0a
diff --git a/pw_kvs/key_value_store.cc b/pw_kvs/key_value_store.cc
index f3cb4a6..325ca16 100644
--- a/pw_kvs/key_value_store.cc
+++ b/pw_kvs/key_value_store.cc
@@ -1226,10 +1226,10 @@
DBG(" Max entry count = %zu", entry_cache_.max_entries());
DBG(" ");
DBG(" # hash version address address (hex)");
- size_t i = 0;
+ size_t count = 0;
for (const EntryMetadata& metadata : entry_cache_) {
DBG(" |%3zu: | %8zx |%8zu | %8zu | %8zx",
- i++,
+ count++,
size_t(metadata.hash()),
size_t(metadata.transaction_id()),
size_t(metadata.first_address()),