From 6e53bb4fdca945d0867e11551bab019c555ecf26 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Thu, 14 Apr 2016 19:22:50 -0700 Subject: [PATCH] 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 -- 2.39.5