From 61e84dc2fada9a2949bcba1851c22e668a739a24 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 20 Jun 2019 01:54:01 +0200 Subject: [PATCH] Ignore MSVC linker warnings about empty object files A number of object files in wxCore can end up being empty due to the corresponding wxUSE_XXX options being set to 0. This is normal and getting tons of warnings from MSVC during the build about it wasn't helpful. It turns out that these warnings can be suppressed by using the undocumented, but described at http://www.geoffchappell.com/studies/msvc/link/link/options/ignore.htm "/ignore" option, so do this to finally get a clean build. --- build/msw/wx_core.vcxproj | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/msw/wx_core.vcxproj b/build/msw/wx_core.vcxproj index 87c60a35e1..8089f36d7b 100644 --- a/build/msw/wx_core.vcxproj +++ b/build/msw/wx_core.vcxproj @@ -160,6 +160,7 @@ true + /ignore:4221 %(AdditionalOptions) $(OutDir)wx_$(wxCompilerPrefix)_$(ProjectName).bsc @@ -196,6 +197,7 @@ $(OutDir)$(TargetName)$(TargetExt) true + /ignore:4221 %(AdditionalOptions) $(OutDir)wx_$(wxCompilerPrefix)_$(ProjectName).bsc @@ -234,6 +236,7 @@ true MachineX86 + /ignore:4221 %(AdditionalOptions) $(OutDir)wx_$(wxCompilerPrefix)_$(ProjectName).bsc @@ -271,6 +274,7 @@ $(OutDir)$(TargetName)$(TargetExt) true + /ignore:4221 %(AdditionalOptions) $(OutDir)wx_$(wxCompilerPrefix)_$(ProjectName).bsc @@ -1502,4 +1506,4 @@ - \ No newline at end of file +