Content-Length: 257740 | pFad | http://github.com/postgrespro/postgres/commit/e7122548a3f754060db1767582148b3559fe8d43

C8 Disable unused-variable warning C4101 in MSVC · postgrespro/postgres@e712254 · GitHub
Skip to content

Commit e712254

Browse files
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
1 parent ac0db34 commit e712254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/msvc/Project.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ sub _new
3434
prefixincludes => '',
3535
defines => ';',
3636
solution => $solution,
37-
disablewarnings => '4018;4244;4273;4102;4090;4267',
37+
disablewarnings => '4018;4244;4273;4101;4102;4090;4267',
3838
disablelinkerwarnings => '',
3939
platform => $solution->{platform},
4040
};

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/e7122548a3f754060db1767582148b3559fe8d43

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy