• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂4acf6f072cbc255b0b0d6cfd598a100f95d84f2a (tree)
時間2020-09-22 22:54:04
作者Yann Sionneau <ysionneau@kalr...>
CommiterWaldemar Brodkorb

Log Message

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>

Change Summary

差異

--- a/libpthread/nptl/allocatestack.c
+++ b/libpthread/nptl/allocatestack.c
@@ -599,7 +599,9 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
599599 if (mprotect (guard, guardsize, PROT_NONE) != 0)
600600 {
601601 int err;
602+#ifdef NEED_SEPARATE_REGISTER_STACK
602603 mprot_error:
604+#endif
603605 err = errno;
604606
605607 lll_lock (stack_cache_lock, LLL_PRIVATE);