]> granicus.if.org Git - postgresql/commitdiff
Fix non-C89-compliant initialization of array in parallel.c.
authorAndres Freund <andres@anarazel.de>
Fri, 15 Apr 2016 02:22:50 +0000 (19:22 -0700)
committerAndres Freund <andres@anarazel.de>
Fri, 15 Apr 2016 02:27:49 +0000 (19:27 -0700)
In newer branches this was already fixed in 59202fae04. Found using
clang's -Wc99-extensions.

src/bin/pg_dump/parallel.c

index b5fd86afe7c2b6f3fb5c9e7c9d8ea0364434a988..770efcf88272bf60db26c24434ba009f99383d22 100644 (file)
@@ -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