1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-05 02:22:28 +03:00

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.
This commit is contained in:
Alvaro Herrera
2017-05-09 14:58:51 -03:00
parent aa3bcba08d
commit e7226dc3eb
2 changed files with 5 additions and 5 deletions

View File

@@ -853,7 +853,7 @@ DisconnectDatabase(ParallelSlot *slot)
if ((cancel = PQgetCancel(slot->connection)))
{
PQcancel(cancel, errbuf, sizeof(errbuf));
(void) PQcancel(cancel, errbuf, sizeof(errbuf));
PQfreeCancel(cancel);
}
}