aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2017-05-09 14:58:51 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2017-05-09 14:58:51 -0300
commitbfaba24829f511c509557ffc718ac75fb580dca7 (patch)
tree040e17830a93670bd71a7452444197ce5f7cfb89 /src/bin/scripts
parentca9cfed883333d5801716eb01cf28b6b5be2b5cd (diff)
downloadpostgresql-bfaba24829f511c509557ffc718ac75fb580dca7.tar.gz
postgresql-bfaba24829f511c509557ffc718ac75fb580dca7.zip
Ignore PQcancel errors properly
Add a (void) cast to all PQcancel() calls that purposefully don't check the return value, to keep compilers and static checkers happy. Per Coverity.
Diffstat (limited to 'src/bin/scripts')
-rw-r--r--src/bin/scripts/vacuumdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/scripts/vacuumdb.c b/src/bin/scripts/vacuumdb.c
index 32cb0fca2f2..b85c3088b34 100644
--- a/src/bin/scripts/vacuumdb.c
+++ b/src/bin/scripts/vacuumdb.c
@@ -854,7 +854,7 @@ DisconnectDatabase(ParallelSlot *slot)
if ((cancel = PQgetCancel(slot->connection)))
{
- PQcancel(cancel, errbuf, sizeof(errbuf));
+ (void) PQcancel(cancel, errbuf, sizeof(errbuf));
PQfreeCancel(cancel);
}
}