OSDN Git Service

runtime: Fix build failures with -D_FORTIFY_SOURCE=2.
[pf3gnuchains/gcc-fork.git] / libgo / runtime / print.c
index 5a8e47e..fcf57ea 100644 (file)
@@ -17,7 +17,10 @@ gwrite(const void *v, int32 n)
        G* g = runtime_g();
 
        if(g == nil || g->writebuf == nil) {
-               runtime_write(2, v, n);
+               // Avoid -D_FORTIFY_SOURCE problems.
+               int rv __attribute__((unused));
+
+               rv = runtime_write(2, v, n);
                return;
        }