Обсуждение: pgsql: Add (void) cast in front of rmtree() call at the end of pg_upgra

Поиск
Список
Период
Сортировка

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

От
Michael Paquier
Дата:
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(-)