pgsql: Initialize variable to placate compiler.

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Initialize variable to placate compiler.
Date: 2026-03-13 16:32:44
Message-ID: E1w15RM-003rIb-2i@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAA5RZ0sieVNfniCKMDdDjuXGd1OuzMQfTS5%3D9vX3sa-iiujKUA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/be43c48c22cc8a4f55258e5230d23909e13c5efd

Modified Files
--------------
contrib/pg_plan_advice/pgpa_scan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jacob Champion 2026-03-13 16:38:51 pgsql: libpq-oauth: Never link against libpq's encoding functions
Previous Message Nathan Bossart 2026-03-13 16:08:02 pgsql: Optimize COPY FROM (FORMAT {text,csv}) using SIMD.