pgsql: Disable unused-variable warning C4101 in MSVC

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Disable unused-variable warning C4101 in MSVC
Date: 2021-11-30 13:08:05
Message-ID: E1ms2rd-0005lZ-Ks@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Disable unused-variable warning C4101 in MSVC

The C4101 warning for unused variable cannot be individually suppressed
with PG_USED_FOR_ASSERTS_ONLY, and thus cause false-positive warnings
for variables which are defined but only read/written in an assertion.
Until a satisfactory solution for per-variable suppression like how we
do for gcc and clang, disable the warning.

Discussion: https://postgr.es/m/CAJcOf-c+KniGAp31pn8TC=9a-WHXpkX-3+8-2BkaCsZchhu=8w@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/tools/msvc/Project.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2021-11-30 14:41:25 Re: pgsql: Update high level vacuumlazy.c comments.
Previous Message Daniel Gustafsson 2021-11-30 10:50:16 pgsql: Use test-specific temp path for keys during SSL test