Skip to content

Commit

Permalink
MSVC: from now on, *ignore*: warning C4774: 'snprintf' : format strin…
Browse files Browse the repository at this point in the history
…g expected in argument 3 is not a string literal
  • Loading branch information
GerHobbelt committed Oct 11, 2024
1 parent 5db2434 commit 6807174
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platform/win32/common-project.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemDefinitionGroup>
<ClCompile>
<DisableSpecificWarnings>4711;4295;4152;4200;4355;5246;5267;4866;4868;5220;4582;4583;4435;4619;5029;5266;4371;5031;4946;5250;5262;5038;5219;4710;4388;4324;4242;4365;4623;4626;5026;5027;4625;4514;4464;4061;4668;5045;4820;4180;4244;4018;4267;5105;4100;4127;4206;4102;4146;4189;4245;4334;4389;4457;4458;4456;4459;4701;4702;4706;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DisableSpecificWarnings>4774;4711;4295;4152;4200;4355;5246;5267;4866;4868;5220;4582;4583;4435;4619;5029;5266;4371;5031;4946;5250;5262;5038;5219;4710;4388;4324;4242;4365;4623;4626;5026;5027;4625;4514;4464;4061;4668;5045;4820;4180;4244;4018;4267;5105;4100;4127;4206;4102;4146;4189;4245;4334;4389;4457;4458;4456;4459;4701;4702;4706;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<PreprocessorDefinitions>abort=qiqqa_abort_application;exit=qiqqa_exit_application;GHC_DO_NOT_USE_STD_FS;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;_CRTDBG_MAP_ALLOC;_CRT_SECURE_NO_DEPRECATE;_CRT_INTERNAL_NONSTDC_NAMES;_USE_MATH_DEFINES;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Midl>
Expand Down
3 changes: 2 additions & 1 deletion platform/win32/update-vcxproj.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ while we keep these:
- warning C4200: nonstandard extension used: zero-sized array in struct/union
- warning C4152: nonstandard extension, function/data pointer conversion in expression
- warning C4711: function 'pngcrush_pause' selected for automatic inline expansion
- warning C4774: 'snprintf' : format string expected in argument 3 is not a string literal
- warning C4295: 'singleline_comment_1': array is too small to include a terminating null character
- warning C4295: 'xmltranscodetable_ISO8859_2': array is too small to include a terminating null character
Expand Down Expand Up @@ -375,7 +376,7 @@ while we keep these:
lest we want to ignore most of these too:
<DisableSpecificWarnings>4711;4295;4152;4200;4355;5246;5267;4866;4868;5220;4582;4583;4435;4619;5029;5266;4371;5031;4946;5250;5262;5038;5219;4710;4388;4324;4242;4365;4623;4626;5026;5027;4625;4514;4464;4061;4668;5045;4820;4180;4244;4018;4267;5105;4100;4127;4206;4102;4146;4189;4245;4334;4389;4457;4458;4456;4459;4701;4702;4706;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DisableSpecificWarnings>4774;4711;4295;4152;4200;4355;5246;5267;4866;4868;5220;4582;4583;4435;4619;5029;5266;4371;5031;4946;5250;5262;5038;5219;4710;4388;4324;4242;4365;4623;4626;5026;5027;4625;4514;4464;4061;4668;5045;4820;4180;4244;4018;4267;5105;4100;4127;4206;4102;4146;4189;4245;4334;4389;4457;4458;4456;4459;4701;4702;4706;%(DisableSpecificWarnings)</DisableSpecificWarnings>
------------------------------------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 6807174

Please sign in to comment.