Hello.

In lto.c, if #ifdef HAVE_WORKING_FORK isn't defined, 'last' argument is unused 
and in that case GCC cannot bootstrap due to a warning.

Ready for trunk?
Built on x86_64-linux-gnu.

Thanks,
Martin
gcc/lto/ChangeLog:

2014-10-06  Martin Liska  <mli...@suse.cz>

        * lto.c (stream_out): ARG_UNUSED added for last argument.
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 6cbb178..bc53632 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -2495,7 +2495,8 @@ wait_for_child ()
    Fork if that seems to help.  */
 
 static void
-stream_out (char *temp_filename, lto_symtab_encoder_t encoder, bool last)
+stream_out (char *temp_filename, lto_symtab_encoder_t encoder,
+	    bool ARG_UNUSED (last))
 {
 #ifdef HAVE_WORKING_FORK
   static int nruns;

Reply via email to