From 8b33101442a91db2a9c083e6844177ccbb2d3d0b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 27 May 2019 00:10:34 +0000 Subject: [PATCH] =?utf8?q?re=20PR=20go/90614=20(gcc-9.1.0/libgo/go/syscall?= =?utf8?q?/wait.c:54:22:=20error:=20unused=20parameter=20=E2=80=98w?= =?utf8?q?=E2=80=99=20[-Werror=3Dunused-parameter]=20Continued=20(uint32?= =?utf8?q?=5Ft=20*w))?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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: r271638 --- gcc/go/gofrontend/MERGE | 2 +- libgo/go/syscall/wait.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 2cd7a0e94fe..7f668945952 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -54aacecc8167bfba8420cb7b245787ff80bde61b +578c4fb6132801db8e9d11d741d2394e07c5a398 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. 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; } -- 2.30.2