summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2016-04-14 19:22:50 -0700
committerAndres Freund <andres@anarazel.de>2016-04-14 19:27:49 -0700
commit6e53bb4fdca945d0867e11551bab019c555ecf26 (patch)
tree4798079c018480eb2d34e76e2a7e719e8f0f9298
parentf1d26d3e0a7f0e1928cfb672c6c56fc342174a58 (diff)
Fix non-C89-compliant initialization of array in parallel.c.
In newer branches this was already fixed in 59202fae04. Found using clang's -Wc99-extensions.
-rw-r--r--src/bin/pg_dump/parallel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/pg_dump/parallel.c b/src/bin/pg_dump/parallel.c
index b5fd86afe7c..770efcf8827 100644
--- a/src/bin/pg_dump/parallel.c
+++ b/src/bin/pg_dump/parallel.c
@@ -558,7 +558,10 @@ ParallelBackupStart(ArchiveHandle *AH, RestoreOptions *ropt)
{
/* we are the worker */
int j;
- int pipefd[2] = {pipeMW[PIPE_READ], pipeWM[PIPE_WRITE]};
+ int pipefd[2];
+
+ pipefd[0] = pipeMW[PIPE_READ];
+ pipefd[1] = pipeWM[PIPE_WRITE];
/*
* Store the fds for the reverse communication in pstate. Actually