diff options
author | Yann Sionneau <ysionneau@kalray.eu> | 2020-09-22 14:17:03 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2020-09-22 15:54:04 +0200 |
commit | 4acf6f072cbc255b0b0d6cfd598a100f95d84f2a (patch) | |
tree | 97ef04ccfe476f780ca86c0e8251c8691fd556e5 /libpthread | |
parent | e5739032a85e93ffbfd291ef2c3e07f52b45a84f (diff) |
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 <ysionneau@kalray.eu>
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/nptl/allocatestack.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |