mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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
This commit is contained in:
@ -34,7 +34,7 @@ sub _new
|
|||||||
prefixincludes => '',
|
prefixincludes => '',
|
||||||
defines => ';',
|
defines => ';',
|
||||||
solution => $solution,
|
solution => $solution,
|
||||||
disablewarnings => '4018;4244;4273;4102;4090;4267',
|
disablewarnings => '4018;4244;4273;4101;4102;4090;4267',
|
||||||
disablelinkerwarnings => '',
|
disablelinkerwarnings => '',
|
||||||
platform => $solution->{platform},
|
platform => $solution->{platform},
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user