From 049f8e88fc72d17e94d5429186ea4b93398a8c5e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 27 Apr 2013 14:30:01 +0300 Subject: [PATCH] job.c: Fix compilation error on GNU/Linux due to "label at end of compound statement". --- ChangeLog | 5 +++++ job.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dc1d2ff2..93fa286a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-04-27 Eli Zaretskii + + * job.c: Fix compilation error on GNU/Linux due to "label at end + of compound statement". + 2013-04-27 Frank Heckenbach (tiny change) * job.c (sync_output): Don't discard the output if diff --git a/job.c b/job.c index 18494f6d..4d0120e6 100644 --- 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() */