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

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix potential for compiler warning in GlobalVisTestFor().
Date: 2021-09-14 00:01:38
Message-ID: E1mPvtK-0007Ci-Ta@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)snowman(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2021-09-14 00:01:53 Re: pgsql: Deduplicate choice of horizon for a relation procarray.c.
Previous Message Tom Lane 2021-09-13 20:53:21 pgsql: Clear conn->errorMessage at successful completion of PQconnectdb