Fix an instance of -Wshadow.

Bug: chromium:794619
Change-Id: I504c2931e19f7de4f9d65227fc55978622d0de6f
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3253960
Reviewed-by: Mark Mentovai <mark@chromium.org>
Reviewed-by: Justin Cohen <justincohen@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
This commit is contained in:
Peter Kasting 2021-10-30 07:52:58 -07:00 committed by Crashpad LUCI CQ
parent d842c3c4c6
commit defcda0c2c

View File

@ -336,9 +336,8 @@ class ProcessSnapshotIOSIntermediateDumpTest : public testing::Test {
stack_region_address += 10;
EXPECT_TRUE(
writer->AddProperty(Key::kStackRegionAddress, &stack_region_address));
constexpr char memory_region[] = "stack_data";
EXPECT_TRUE(
writer->AddPropertyBytes(Key::kStackRegionData, memory_region, 10));
writer->AddPropertyBytes(Key::kStackRegionData, "stack_data", 10));
{
IOSIntermediateDumpWriter::ScopedArray memoryRegions(
writer, Key::kThreadContextMemoryRegions);
@ -347,9 +346,8 @@ class ProcessSnapshotIOSIntermediateDumpTest : public testing::Test {
const vm_address_t memory_region_address = 0;
EXPECT_TRUE(writer->AddProperty(
Key::kThreadContextMemoryRegionAddress, &memory_region_address));
constexpr char memory_region[] = "string";
EXPECT_TRUE(writer->AddPropertyBytes(
Key::kThreadContextMemoryRegionData, memory_region, 6));
Key::kThreadContextMemoryRegionData, "string", 6));
}
}
}