projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1d26d3
)
Fix non-C89-compliant initialization of array in parallel.c.
author
Andres Freund
<andres@anarazel.de>
Fri, 15 Apr 2016 02:22:50 +0000
(19:22 -0700)
committer
Andres 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
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_dump/parallel.c
b/src/bin/pg_dump/parallel.c
index b5fd86afe7c2b6f3fb5c9e7c9d8ea0364434a988..770efcf88272bf60db26c24434ba009f99383d22 100644
(file)
--- 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