From: Nathan Bossart Date: Fri, 13 Mar 2026 16:32:14 +0000 (-0500) Subject: Initialize variable to placate compiler. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be43c48c22cc8a4f55258e5230d23909e13c5efd;p=thirdparty%2Fpostgresql.git 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 Discussion: https://postgr.es/m/CAA5RZ0sieVNfniCKMDdDjuXGd1OuzMQfTS5%3D9vX3sa-iiujKUA%40mail.gmail.com --- diff --git a/contrib/pg_plan_advice/pgpa_scan.c b/contrib/pg_plan_advice/pgpa_scan.c index 14bde3e149a..5f210f2b725 100644 --- a/contrib/pg_plan_advice/pgpa_scan.c +++ b/contrib/pg_plan_advice/pgpa_scan.c @@ -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);