summaryrefslogtreecommitdiffstats
path: root/libgo/runtime
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-27 22:01:08 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-27 22:01:08 +0000
commit41b1290eb055f7635c5f381f61eacde9baf8025b (patch)
tree4e6a391108ebc7f51a58d499c2ef373fc1980026 /libgo/runtime
parent40a9c023db4a5b712407d996cdb95119e16bf60d (diff)
downloadppe42-gcc-41b1290eb055f7635c5f381f61eacde9baf8025b.tar.gz
ppe42-gcc-41b1290eb055f7635c5f381f61eacde9baf8025b.zip
libgo/runtime: fix unused-result warning
Result of runtime_write is ignored, causing an unused-result result warning (error in my case, with -Werror=unused-result). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@210986 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime')
-rw-r--r--libgo/runtime/proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
index 1bc0876d8e6..30516ad7d78 100644
--- a/libgo/runtime/proc.c
+++ b/libgo/runtime/proc.c
@@ -1117,7 +1117,8 @@ runtime_needm(void)
if(runtime_needextram) {
// Can happen if C/C++ code calls Go from a global ctor.
// Can not throw, because scheduler is not initialized yet.
- runtime_write(2, "fatal error: cgo callback before cgo call\n",
+ int rv __attribute__((unused));
+ rv = runtime_write(2, "fatal error: cgo callback before cgo call\n",
sizeof("fatal error: cgo callback before cgo call\n")-1);
runtime_exit(1);
}
OpenPOWER on IntegriCloud