mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
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:
parent
d842c3c4c6
commit
defcda0c2c
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user