From: Ian Lance Taylor Date: Tue, 29 Aug 2017 20:57:20 +0000 (+0000) Subject: runtime: make go-nosys.c compile with !HAVE_SYSCALL X-Git-Tag: upstream/12.2.0~37450 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fa7df983e21a1c084ce063e650652011451b455;p=platform%2Fupstream%2Fgcc.git runtime: make go-nosys.c compile with !HAVE_SYSCALL Reviewed-on: https://go-review.googlesource.com/59910 From-SVN: r251435 --- diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 3d20e71..3351558 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -db8e3801bf8508656606d6e465c76cdc6e9a9eb7 +a28f1d8aa306bdb5166af1f087e5f5027ce51d6d The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/libgo/runtime/go-nosys.c b/libgo/runtime/go-nosys.c index 154f6b1..30222df 100644 --- a/libgo/runtime/go-nosys.c +++ b/libgo/runtime/go-nosys.c @@ -506,7 +506,7 @@ strerror_r (int errnum, char *buf, size_t buflen) #ifndef HAVE_SYSCALL int -syscall(int number, ...) +syscall(int number __attribute__ ((unused)), ...) { errno = ENOSYS; return -1;