From 4acf6f072cbc255b0b0d6cfd598a100f95d84f2a Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Tue, 22 Sep 2020 14:17:03 +0200 Subject: Fix warning due to unused label in NPTL Fixes this: In file included from libpthread/nptl/pthread_create.c:48:0: libpthread/nptl/allocatestack.c: In function 'allocate_stack': libpthread/nptl/allocatestack.c:602:6: warning: label 'mprot_error' defined but not used [-Wunused-label] mprot_error: ^~~~~~~~~~~ Signed-off-by: Yann Sionneau --- libpthread/nptl/allocatestack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libpthread/nptl/allocatestack.c b/libpthread/nptl/allocatestack.c index 137979542..7ef884543 100644 --- a/libpthread/nptl/allocatestack.c +++ b/libpthread/nptl/allocatestack.c @@ -599,7 +599,9 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, if (mprotect (guard, guardsize, PROT_NONE) != 0) { int err; +#ifdef NEED_SEPARATE_REGISTER_STACK mprot_error: +#endif err = errno; lll_lock (stack_cache_lock, LLL_PRIVATE); -- cgit v1.2.3