diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2021-11-30 14:02:37 +0100 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2021-11-30 14:02:37 +0100 |
commit | e7122548a3f754060db1767582148b3559fe8d43 (patch) | |
tree | ff4723f97d0a157509a8cb1b95d987011786ee93 /src | |
parent | ac0db34e0e5c7ee6f8b5c33c264de3e671fbd4f7 (diff) | |
download | postgresql-e7122548a3f754060db1767582148b3559fe8d43.tar.gz postgresql-e7122548a3f754060db1767582148b3559fe8d43.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/msvc/Project.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm index aec922279df..514003de11b 100644 --- a/src/tools/msvc/Project.pm +++ b/src/tools/msvc/Project.pm @@ -34,7 +34,7 @@ sub _new prefixincludes => '', defines => ';', solution => $solution, - disablewarnings => '4018;4244;4273;4102;4090;4267', + disablewarnings => '4018;4244;4273;4101;4102;4090;4267', disablelinkerwarnings => '', platform => $solution->{platform}, }; |