pgsql: Silence compiler warning. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Silence compiler warning.
Date
Msg-id E1tuYKl-0036pO-0T@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Silence compiler warning.

Assorted buildfarm members are complaining about "'process_list' may
be used uninitialized in this function" since f76892c9f, presumably
because they don't trust that the switch case labels are exhaustive.
We can silence that by initializing the variable to NULL.  Should
a switch fall-through actually happen, we'll get SIGSEGV at the
first use, which is as good as an Assert.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4078da6c478039bbafdd58138957dc47db545935

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


pgsql-committers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: pgsql: Add X25519 to the default set of curves
Next
From: Tom Lane
Date:
Subject: Re: pgsql: aio: Add core asynchronous I/O infrastructure