mirror of
https://github.com/postgres/postgres.git
synced 2026-03-22 18:33:19 -04:00
Initialize variable to placate compiler.
Since commit 5883ff30b0, some compilers have been warning that the
rtekind variable in unique_nonjoin_rtekind() may be used
uninitialized. There doesn't appear to be any actual risk, so
let's just initialize it to something to silence the compiler
warnings.
Author: Sami Imseih <samimseih@gmail.com>
Discussion: https://postgr.es/m/CAA5RZ0sieVNfniCKMDdDjuXGd1OuzMQfTS5%3D9vX3sa-iiujKUA%40mail.gmail.com
This commit is contained in:
parent
e0a3a3fd53
commit
be43c48c22
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ unique_nonjoin_rtekind(Bitmapset *relids, List *rtable)
|
|||
{
|
||||
int rti = -1;
|
||||
bool first = true;
|
||||
RTEKind rtekind;
|
||||
RTEKind rtekind = RTE_RELATION; /* silence compiler warning */
|
||||
|
||||
Assert(relids != NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue