job.c: Fix compilation error on GNU/Linux due to "label at end of compound statement".
authorEli Zaretskii <eliz@gnu.org>
Sat, 27 Apr 2013 11:30:01 +0000 (14:30 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 27 Apr 2013 11:30:01 +0000 (14:30 +0300)
ChangeLog
job.c

index dc1d2ff2dc894faebb08d9bee94d4ca63d9d7bba..93fa286ab84ad08e1c767fe20123c927472eba7d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-27  Eli Zaretskii  <eliz@gnu.org>
+
+       * job.c: Fix compilation error on GNU/Linux due to "label at end
+       of compound statement".
+
 2013-04-27  Frank Heckenbach <f.heckenbach@fh-soft.de>  (tiny change)
 
        * job.c (sync_output): Don't discard the output if
diff --git a/job.c b/job.c
index 18494f6dbfaa93846558d75788a9b2e8df2220ee..4d0120e648717c6645fe72884ce9830a378f4d22 100644 (file)
--- a/job.c
+++ b/job.c
@@ -620,13 +620,18 @@ pump_from_tmp_fd (int from_fd, int to_fd)
         nleft -= nwrite;
       }
     }
-finished:
+
+ finished:
 
 #ifdef WINDOWS32
   /* Switch to_fd back to its original mode, so that log messages by
      Make have the same EOL format as without --output-sync.  */
   _setmode (to_fd, prev_mode);
 #endif
+
+  /* This is needed to avoid the "label at end of compound statement"
+     diagnostics on Posix platforms.  */
+  return;
 }
 
 /* Support routine for sync_output() */