aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Clauson <[email protected]>2019-08-28 15:03:23 +0200
committerAaron Clauson <[email protected]>2019-08-28 15:03:23 +0200
commitaff1c9c8845e7762e9710008998555a72045e40c (patch)
tree2e21de0abf0ad89de3ddc126bbf1f48e78ad5586
parentMerge #16726: tests: Avoid common Python default parameter gotcha when mutabl... (diff)
downloaddiscoin-aff1c9c8845e7762e9710008998555a72045e40c.tar.xz
discoin-aff1c9c8845e7762e9710008998555a72045e40c.zip
Adds an option to msbuild common configuration to ignore linker warning 4221. This warning is for object files that do not include any symbols. The warning is harmless and occurs due to some classes that are *nix only having no source to compile for an msvc build.
-rw-r--r--build_msvc/common.init.vcxproj3
1 files changed, 3 insertions, 0 deletions
diff --git a/build_msvc/common.init.vcxproj b/build_msvc/common.init.vcxproj
index 0d186b5af..e9f4e2386 100644
--- a/build_msvc/common.init.vcxproj
+++ b/build_msvc/common.init.vcxproj
@@ -113,6 +113,9 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>crypt32.lib;Iphlpapi.lib;ws2_32.lib;Shlwapi.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
+ <Lib>
+ <AdditionalOptions>/ignore:4221</AdditionalOptions>
+ </Lib>
</ItemDefinitionGroup>
<Import Project="common.init.vcxproj.user" Condition="Exists('common.init.vcxproj.user')" />
</Project>