ruby-changes:67545
From: Nobuyoshi <ko1@a...>
Date: Thu, 2 Sep 2021 08:50:36 +0900 (JST)
Subject: [ruby-changes:67545] 9c5ad5d42d (master): Suppress format-pedantic warnings
https://git.ruby-lang.org/ruby.git/commit/?id=9c5ad5d42d From 9c5ad5d42d026a1acc123e7597a4f92ef6e09e6b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 2 Sep 2021 08:26:46 +0900 Subject: Suppress format-pedantic warnings --- cont.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cont.c b/cont.c index 51d77c6..164e9c7 100644 --- a/cont.c +++ b/cont.c @@ -561,7 +561,7 @@ fiber_pool_allocation_free(struct fiber_pool_allocation * allocation) https://github.com/ruby/ruby/blob/trunk/cont.c#L561 VM_ASSERT(allocation->used == 0); - if (DEBUG) fprintf(stderr, "fiber_pool_allocation_free: %p base=%p count=%"PRIuSIZE"\n", allocation, allocation->base, allocation->count); + if (DEBUG) fprintf(stderr, "fiber_pool_allocation_free: %p base=%p count=%"PRIuSIZE"\n", (void*)allocation, allocation->base, allocation->count); size_t i; for (i = 0; i < allocation->count; i += 1) { @@ -1052,7 +1052,7 @@ fiber_free(void *ptr) https://github.com/ruby/ruby/blob/trunk/cont.c#L1052 rb_fiber_t *fiber = ptr; RUBY_FREE_ENTER("fiber"); - if (DEBUG) fprintf(stderr, "fiber_free: %p[%p]\n", fiber, fiber->stack.base); + if (DEBUG) fprintf(stderr, "fiber_free: %p[%p]\n", (void *)fiber, fiber->stack.base); if (fiber->cont.saved_ec.local_storage) { rb_id_table_free(fiber->cont.saved_ec.local_storage); @@ -1367,7 +1367,7 @@ fiber_setcontext(rb_fiber_t *new_fiber, rb_fiber_t *old_fiber) https://github.com/ruby/ruby/blob/trunk/cont.c#L1367 /* old_fiber->machine.stack_end should be NULL */ old_fiber->cont.saved_ec.machine.stack_end = NULL; - // if (DEBUG) fprintf(stderr, "fiber_setcontext: %p[%p] -> %p[%p]\n", old_fiber, old_fiber->stack.base, new_fiber, new_fiber->stack.base); + // if (DEBUG) fprintf(stderr, "fiber_setcontext: %p[%p] -> %p[%p]\n", (void*)old_fiber, old_fiber->stack.base, (void*)new_fiber, new_fiber->stack.base); /* swap machine context */ struct coroutine_context * from = coroutine_transfer(&old_fiber->context, &new_fiber->context); @@ -1380,7 +1380,7 @@ fiber_setcontext(rb_fiber_t *new_fiber, rb_fiber_t *old_fiber) https://github.com/ruby/ruby/blob/trunk/cont.c#L1380 fiber_restore_thread(th, old_fiber); // It's possible to get here, and new_fiber is already freed. - // if (DEBUG) fprintf(stderr, "fiber_setcontext: %p[%p] <- %p[%p]\n", old_fiber, old_fiber->stack.base, new_fiber, new_fiber->stack.base); + // if (DEBUG) fprintf(stderr, "fiber_setcontext: %p[%p] <- %p[%p]\n", (void*)old_fiber, old_fiber->stack.base, (void*)new_fiber, new_fiber->stack.base); } NOINLINE(NORETURN(static void cont_restore_1(rb_context_t *))); -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/