修訂 | 4acf6f072cbc255b0b0d6cfd598a100f95d84f2a (tree) |
---|---|
時間 | 2020-09-22 22:54:04 |
作者 | Yann Sionneau <ysionneau@kalr...> |
Commiter | Waldemar Brodkorb |
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]
Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>
@@ -599,7 +599,9 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, | ||
599 | 599 | if (mprotect (guard, guardsize, PROT_NONE) != 0) |
600 | 600 | { |
601 | 601 | int err; |
602 | +#ifdef NEED_SEPARATE_REGISTER_STACK | |
602 | 603 | mprot_error: |
604 | +#endif | |
603 | 605 | err = errno; |
604 | 606 | |
605 | 607 | lll_lock (stack_cache_lock, LLL_PRIVATE); |