Skip to content

Commit aff1c9c

Browse files
committed
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.
1 parent cc40b55 commit aff1c9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build_msvc/common.init.vcxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@
113113
<GenerateDebugInformation>true</GenerateDebugInformation>
114114
<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>
115115
</Link>
116+
<Lib>
117+
<AdditionalOptions>/ignore:4221</AdditionalOptions>
118+
</Lib>
116119
</ItemDefinitionGroup>
117120
<Import Project="common.init.vcxproj.user" Condition="Exists('common.init.vcxproj.user')" />
118121
</Project>

0 commit comments

Comments
 (0)