Re: MSVC: Improve warning options set
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Peter Eisentraut <peter@eisentraut.org>,
Bryan Green <dbryan.green@gmail.com>,
pgsql-hackers@lists.postgresql.org
Date: 2025-11-08T21:58:23Z
Lists: pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes: > What we should do to make this clearer and avoid spurious problem > reports is error out unless you're on UCRT, but a patch for that got > stuck waiting for the Debian images used on CI to be upgraded to > Debian trixie, because that shipped the necessary newer > MinGW/headers/etc in its cross-build packages. That has now happened, > so we should probably go ahead with something like the patch I posted > here: > https://www.postgresql.org/message-id/flat/CA%2BhUKG%2BQJv-g7C2APVV7O_jEJkxH1AmvgAe8X2vDR8mRdSKn3A%40mail.gmail.com#e6d0c91e2f59e6e39eb61095da4cc598 +1 > In theory we could even back-patch that to 18, since we already know > it won't fully work and we already declared that we don't support it. > Or we could just let sleeping dogs lie and do that for 19. I don't quite understand how 1758d4244 didn't break building with MSVCRT? But if it builds yet doesn't in fact work, that's likely to draw complaints from people who didn't spot the documentation change. So I'd lean towards back-patching. regards, tom lane
Commits
-
Fix "inconsistent DLL linkage" warning on Windows MSVC
- a3ea5330fcf4 19 (unreleased) landed
-
MSVC: Improve warning options set
- 2307cfe31621 19 (unreleased) landed
-
Enable MSVC conforming preprocessor
- 8fd9bb1d9654 19 (unreleased) cited
-
Fix warnings about declaration of environ on MinGW.
- 7bc9a8bdd2d6 18.0 cited
-
Require ucrt if using MinGW.
- 1758d4244616 18.0 cited