pgsql: Fix potential for compiler warning in GlobalVisTestFor().

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Fix potential for compiler warning in GlobalVisTestFor().
Дата
Msg-id E1mPvtK-0007Ci-Ta@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix potential for compiler warning in GlobalVisTestFor().

In d9d8aa9bb9a I added a defensive NULL assignment to protect against a
not-too-smart compiler warning about unitialized variable use after the
switch. Unfortunately I only did so on master and forgot to adjust that for
14.

Stephen noticed that there actually is a compiler warning :(.

Reported-By: Stephen Frost <sfrost@snowman.net>
Discussion: https://postgr.es/m/20210827224639.GX17906@tamriel.snowman.net

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0d0bbee5e3ee2eabe3a1f6081cbc4226520764c0

Modified Files
--------------
src/backend/storage/ipc/procarray.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Clear conn->errorMessage at successful completion of PQconnectdb
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Remove code duplication for permission checks with replication s