pgsql: Add (void) cast in front of rmtree() call at the end of pg_upgra - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Add (void) cast in front of rmtree() call at the end of pg_upgra
Date
Msg-id E1nGwYq-0001Vd-D3@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add (void) cast in front of rmtree() call at the end of pg_upgrade

Most calls of rmtree() report an error, and the code coming from 38bfae3
has introduced one caller where this is not done.  The previous behavior
was to not fail hard if any log file generated is not properly unlinked
when cleaning up the contents generated once the upgrade has completed,
so add a cast to (void) to indicate the intention behind this new code.

Per gripe from Coverity.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/42a9e88bf6a809e6023c9d50f58cc6b9446f229d

Modified Files
--------------
src/bin/pg_upgrade/pg_upgrade.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Release notes for 14.2, 13.6, 12.10, 11.15, 10.20.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Translation updates