mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-26 06:31:50 +08:00
Mac: Fix shadow warning
This caused a warning with `-Wshadow` on due to the loop below. Bug: None Change-Id: I63c4252d7ff66c416d8f0edde868a9b0a6aeb65e Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3838745 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Leonard Grey <lgrey@chromium.org>
This commit is contained in:
parent
af96fcd576
commit
1d4447645d
@ -423,10 +423,9 @@ TEST(ProcessReaderMac, SelfSeveralThreads) {
|
||||
ThreadMap thread_map;
|
||||
const uint64_t self_thread_id = PthreadToThreadID(pthread_self());
|
||||
TestThreadPool::ThreadExpectation expectation;
|
||||
pthread_t thread = pthread_self();
|
||||
expectation.stack_base =
|
||||
FromPointerCast<mach_vm_address_t>(pthread_get_stackaddr_np(thread));
|
||||
expectation.stack_size = pthread_get_stacksize_np(thread);
|
||||
expectation.stack_base = FromPointerCast<mach_vm_address_t>(
|
||||
pthread_get_stackaddr_np(pthread_self()));
|
||||
expectation.stack_size = pthread_get_stacksize_np(pthread_self());
|
||||
expectation.suspend_count = 0;
|
||||
thread_map[self_thread_id] = expectation;
|
||||
for (size_t thread_index = 0; thread_index < kChildThreads; ++thread_index) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user