postgres.git / summary / log / commit / refs
commit 6e53bb4fdca945d0867e11551bab019c555ecf26
Author: Andres Freund <andres@anarazel.de>
Date: Fri Apr 15 02:22:50 2016 +0000
First released in: 9.3.13
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.
src/bin/pg_dump/parallel.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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
[parent: f1d26d3e0a7f]