Contents of /trunk/gcc/patches/gcc-4.7.1-libgo-write.patch
Parent Directory | Revision Log
Revision 1809 -
(show annotations)
(download)
Thu Jun 21 08:49:58 2012 UTC (12 years, 3 months ago) by niro
File size: 420 byte(s)
Thu Jun 21 08:49:58 2012 UTC (12 years, 3 months ago) by niro
File size: 420 byte(s)
-added patch to fix compile issues
1 | diff -Naur gcc-4.7.1-orig/libgo/runtime/print.c gcc-4.7.1/libgo/runtime/print.c |
2 | --- gcc-4.7.1-orig/libgo/runtime/print.c 2012-05-26 04:22:14.000000000 +1000 |
3 | +++ gcc-4.7.1/libgo/runtime/print.c 2012-06-16 15:06:28.553138502 +1000 |
4 | @@ -17,7 +17,8 @@ |
5 | G* g = runtime_g(); |
6 | |
7 | if(g == nil || g->writebuf == nil) { |
8 | - runtime_write(2, v, n); |
9 | + ssize_t bytesWritten = runtime_write(2, v, n); |
10 | + (void)bytesWritten; |
11 | return; |
12 | } |