From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowleyml@gmail.com>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Fixing MSVC's inability to detect elog(ERROR) does not return
Date: Wed, 23 Jul 2025 23:43:18 -0400
Message-ID: <1571122.1753328598@sss.pgh.pa.us> (raw)
In-Reply-To: <CAApHDvrJ7ePYW8474s57Tk7BD4C2UZe6MkGrDSafz8V1XTdqSA@mail.gmail.com>
References: <CAApHDvom02B_XNVSkvxznVUyZbjGAR+5myA89ZcbEd3=PA9UcA@mail.gmail.com>
<1549558.1753316851@sss.pgh.pa.us>
<CAApHDvrJ7ePYW8474s57Tk7BD4C2UZe6MkGrDSafz8V1XTdqSA@mail.gmail.com>
David Rowley <dgrowleyml@gmail.com> writes:
> On Thu, 24 Jul 2025 at 12:27, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Hmmm ... but you did check that in fact we can remove such known-dead
>> code and not get a warning now?
> Yes. The patch has a small temporary adjustment to
> BaseBackupGetTargetHandle() to comment out the return. It compiles for
> me using Visual Studio 2022 without any warnings. If I remove the
> macro change, I get:
> [598/2255] Compiling C object
> src/backend/postgres_lib.a.p/backup_basebackup_target.c.obj
> src\backend\backup\basebackup_target.c(150) : warning C4715:
> 'BaseBackupGetTargetHandle': not all control paths return a value
OK. I'd vote for going ahead and seeing what the buildfarm says.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, dgrowleyml@gmail.com
Subject: Re: Fixing MSVC's inability to detect elog(ERROR) does not return
In-Reply-To: <1571122.1753328598@sss.pgh.pa.us>
References: <CAApHDvom02B_XNVSkvxznVUyZbjGAR+5myA89ZcbEd3=PA9UcA@mail.gmail.com> <1549558.1753316851@sss.pgh.pa.us> <CAApHDvrJ7ePYW8474s57Tk7BD4C2UZe6MkGrDSafz8V1XTdqSA@mail.gmail.com> <1571122.1753328598@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox