summarylogtreecommitdiffstats
path: root/gcc-4.7.1-libgo-write.patch
diff options
context:
space:
mode:
authorFantix King2012-09-22 17:43:17 +0800
committerFantix King2015-11-08 20:36:27 +0800
commitd075d963a7f9eb1d10d8a76dbeaae94a376cadd1 (patch)
treeb7cb65eda42d6cc08ef0690cf9493d6494c55c08 /gcc-4.7.1-libgo-write.patch
downloadaur-d075d963a7f9eb1d10d8a76dbeaae94a376cadd1.tar.gz
4.7.1-4.1
Diffstat (limited to 'gcc-4.7.1-libgo-write.patch')
-rw-r--r--gcc-4.7.1-libgo-write.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.7.1-libgo-write.patch b/gcc-4.7.1-libgo-write.patch
new file mode 100644
index 00000000000..a7be83fdad8
--- /dev/null
+++ b/gcc-4.7.1-libgo-write.patch
@@ -0,0 +1,13 @@
+diff -Naur gcc-4.7.1-orig/libgo/runtime/print.c gcc-4.7.1/libgo/runtime/print.c
+--- gcc-4.7.1-orig/libgo/runtime/print.c 2012-05-26 04:22:14.000000000 +1000
++++ gcc-4.7.1/libgo/runtime/print.c 2012-06-16 15:06:28.553138502 +1000
+@@ -17,7 +17,8 @@
+ G* g = runtime_g();
+
+ if(g == nil || g->writebuf == nil) {
+- runtime_write(2, v, n);
++ ssize_t bytesWritten = runtime_write(2, v, n);
++ (void)bytesWritten;
+ return;
+ }
+