mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-03-01 09:47:01 +08: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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user