]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Disable unused-variable warning C4101 in MSVC
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Tue, 30 Nov 2021 13:02:37 +0000 (14:02 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Tue, 30 Nov 2021 13:02:37 +0000 (14:02 +0100)
commite7122548a3f754060db1767582148b3559fe8d43
treeff4723f97d0a157509a8cb1b95d987011786ee93
parentac0db34e0e5c7ee6f8b5c33c264de3e671fbd4f7
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
src/tools/msvc/Project.pm