Re: Fix a recent "shadow warning" in subscriptioncmds.c

From: Peter Smith <smithpb2250(at)gmail(dot)com>
To: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Fix a recent "shadow warning" in subscriptioncmds.c
Date: 2025-11-28 05:11:30
Message-ID: CAHut+Puugit=Ac9Hqc=wJz1_T=btSg13aOjSeZO4imaDwxqhgw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 28, 2025 at 3:50 PM Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:
...
> I’m just curious why my compile doesn’t warn on that? I am on M4 MacOS 15.6.1, Apple clang 17.0.0.

It's not the default build settings. I have this extra warning enabled
locally so that any code I write or review will not accidentally
introduce things like this.

======
Kind Regards,
Peter Smith.
Fujitsu Australia

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2025-11-28 05:14:49 Re: Simplify code building the LR conflict messages
Previous Message shveta malik 2025-11-28 05:00:28 Re: POC: enable logical decoding when wal_level = 'replica' without a server restart