Skip to content

Commit cd3ff25

Browse files
committed
asan-rt: Silence a few -Wformat=pedantic's in asan_mac.cpp
Differential revision: https://reviews.llvm.org/D150604
1 parent 6ccb806 commit cd3ff25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler-rt/lib/asan/asan_mac.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void asan_dispatch_call_block_and_release(void *block) {
160160
VReport(2,
161161
"asan_dispatch_call_block_and_release(): "
162162
"context: %p, pthread_self: %p\n",
163-
block, pthread_self());
163+
block, (void*)pthread_self());
164164
asan_register_worker_thread(context->parent_tid, &stack);
165165
// Call the original dispatcher for the block.
166166
context->func(context->block);
@@ -193,7 +193,7 @@ asan_block_context_t *alloc_asan_context(void *ctxt, dispatch_function_t func,
193193
asan_block_context_t *asan_ctxt = alloc_asan_context(ctxt, func, &stack); \
194194
if (Verbosity() >= 2) { \
195195
Report(#dispatch_x_f "(): context: %p, pthread_self: %p\n", \
196-
asan_ctxt, pthread_self()); \
196+
asan_ctxt, (void*)pthread_self()); \
197197
PRINT_CURRENT_STACK(); \
198198
} \
199199
return REAL(dispatch_x_f)(dq, (void*)asan_ctxt, \
@@ -224,7 +224,7 @@ INTERCEPTOR(void, dispatch_group_async_f, dispatch_group_t group,
224224
asan_block_context_t *asan_ctxt = alloc_asan_context(ctxt, func, &stack);
225225
if (Verbosity() >= 2) {
226226
Report("dispatch_group_async_f(): context: %p, pthread_self: %p\n",
227-
asan_ctxt, pthread_self());
227+
asan_ctxt, (void*)pthread_self());
228228
PRINT_CURRENT_STACK();
229229
}
230230
REAL(dispatch_group_async_f)(group, dq, (void*)asan_ctxt,

0 commit comments

Comments
 (0)