summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-05-27 00:10:22 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-05-27 00:10:22 +0000
commit53cc4f0042b516dac7d7876c231343e7a9541268 (patch)
tree101846b525c9fef1304e6c06a1866fb610620e63
parent3f1a94a570f9a990f9b664af79a6fa1d2a4cfb7c (diff)
downloadgcc-53cc4f0042b516dac7d7876c231343e7a9541268.tar.gz
re PR go/90614 (gcc-9.1.0/libgo/go/syscall/wait.c:54:22: error: unused parameter ‘w’ [-Werror=unused-parameter] Continued (uint32_t *w))
PR go/90614 syscall: avoid unused parameter error if WIFCONTINUED not defined Fixes https://gcc.gnu.org/PR90614 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/178997 From-SVN: r271637
-rw-r--r--libgo/go/syscall/wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/syscall/wait.c b/libgo/go/syscall/wait.c
index 0b234d0c35b..39bc035e979 100644
--- a/libgo/go/syscall/wait.c
+++ b/libgo/go/syscall/wait.c
@@ -51,7 +51,7 @@ extern _Bool Continued (uint32_t *w)
__asm__ (GOSYM_PREFIX "syscall.WaitStatus.Continued");
_Bool
-Continued (uint32_t *w)
+Continued (uint32_t *w __attribute__ ((unused)))
{
return WIFCONTINUED (*w) != 0;
}