Skip to content

Commit

Permalink
Get rid of MSVC warnings from third party libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamyCecil committed Jan 31, 2025
1 parent 6663fbd commit a730b0b
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 34 deletions.
8 changes: 4 additions & 4 deletions Sources/ThirdParty/LWSkaExporter/LWSkaExporter.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<PreprocessorDefinitions>$(SE1Preproc);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader>
</PrecompiledHeader>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4333;4091;4244;4302;4311</DisableSpecificWarnings>
</ClCompile>
<PostBuildEvent>
<Command>copy "$(OutDir)$(TargetFileName)" "$(PostBuildCopyDir)" &gt;nul</Command>
Expand Down Expand Up @@ -160,7 +160,7 @@
<PreprocessorDefinitions>$(SE1Preproc);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader>
</PrecompiledHeader>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4333;4091;4244;4302;4311</DisableSpecificWarnings>
</ClCompile>
<PostBuildEvent>
<Command>copy "$(OutDir)$(TargetFileName)" "$(PostBuildCopyDir)" &gt;nul</Command>
Expand Down Expand Up @@ -200,7 +200,7 @@
<PrecompiledHeader>
</PrecompiledHeader>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4333;4091;4244;4302;4311</DisableSpecificWarnings>
</ClCompile>
<PostBuildEvent>
<Command>copy "$(OutDir)$(TargetFileName)" "$(PostBuildCopyDir)" &gt;nul</Command>
Expand Down Expand Up @@ -242,7 +242,7 @@
<PrecompiledHeader>
</PrecompiledHeader>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4333;4091;4244;4302;4311</DisableSpecificWarnings>
</ClCompile>
<PostBuildEvent>
<Command>copy "$(OutDir)$(TargetFileName)" "$(PostBuildCopyDir)" &gt;nul</Command>
Expand Down
18 changes: 8 additions & 10 deletions Sources/ThirdParty/libogg/libogg_dynamic.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<CompileAs>CompileAsC</CompileAs>
<DisableSpecificWarnings>4244</DisableSpecificWarnings>
</ClCompile>
<Link>
<ModuleDefinitionFile>ogg.def</ModuleDefinitionFile>
Expand All @@ -217,8 +217,8 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<CompileAs>CompileAsC</CompileAs>
<DisableSpecificWarnings>4244</DisableSpecificWarnings>
</ClCompile>
<Link>
<ModuleDefinitionFile>ogg.def</ModuleDefinitionFile>
Expand Down Expand Up @@ -246,6 +246,7 @@
<WarningLevel>Level4</WarningLevel>
<CompileAs>CompileAsC</CompileAs>
<CallingConvention>Cdecl</CallingConvention>
<DisableSpecificWarnings>4244</DisableSpecificWarnings>
</ClCompile>
<Link>
<ModuleDefinitionFile>ogg.def</ModuleDefinitionFile>
Expand Down Expand Up @@ -274,6 +275,7 @@
<WarningLevel>Level4</WarningLevel>
<CompileAs>CompileAsC</CompileAs>
<CallingConvention>Cdecl</CallingConvention>
<DisableSpecificWarnings>4244</DisableSpecificWarnings>
</ClCompile>
<Link>
<ModuleDefinitionFile>ogg.def</ModuleDefinitionFile>
Expand Down Expand Up @@ -302,7 +304,7 @@
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<CompileAs>CompileAsC</CompileAs>
<DisableSpecificWarnings>4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DisableSpecificWarnings>4244</DisableSpecificWarnings>
</ClCompile>
<Link>
<ModuleDefinitionFile>ogg.def</ModuleDefinitionFile>
Expand Down Expand Up @@ -334,7 +336,7 @@
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<CompileAs>CompileAsC</CompileAs>
<DisableSpecificWarnings>4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DisableSpecificWarnings>4244</DisableSpecificWarnings>
</ClCompile>
<Link>
<ModuleDefinitionFile>ogg.def</ModuleDefinitionFile>
Expand Down Expand Up @@ -366,10 +368,8 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>
</DebugInformationFormat>
<CompileAs>CompileAsC</CompileAs>
<DisableSpecificWarnings>4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DisableSpecificWarnings>4244</DisableSpecificWarnings>
</ClCompile>
<Link>
<ModuleDefinitionFile>ogg.def</ModuleDefinitionFile>
Expand Down Expand Up @@ -402,10 +402,8 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>
</DebugInformationFormat>
<CompileAs>CompileAsC</CompileAs>
<DisableSpecificWarnings>4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DisableSpecificWarnings>4244</DisableSpecificWarnings>
</ClCompile>
<Link>
<ModuleDefinitionFile>ogg.def</ModuleDefinitionFile>
Expand Down
16 changes: 8 additions & 8 deletions Sources/ThirdParty/libvorbis/libvorbis_dynamic.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<CompileAs>CompileAsC</CompileAs>
<DisableSpecificWarnings>4996;4706;4456;4457;4305;4267;4244;4100;4189;4127;4706</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -237,8 +237,8 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<CompileAs>CompileAsC</CompileAs>
<DisableSpecificWarnings>4996;4706;4456;4457;4305;4267;4244;4100;4189;4127;4706</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -270,6 +270,7 @@
<WarningLevel>Level4</WarningLevel>
<CompileAs>CompileAsC</CompileAs>
<CallingConvention>Cdecl</CallingConvention>
<DisableSpecificWarnings>4996;4706;4456;4457;4305;4267;4244;4100;4189;4127;4706</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -302,6 +303,7 @@
<WarningLevel>Level4</WarningLevel>
<CompileAs>CompileAsC</CompileAs>
<CallingConvention>Cdecl</CallingConvention>
<DisableSpecificWarnings>4996;4706;4456;4457;4305;4267;4244;4100;4189;4127;4706</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -334,7 +336,7 @@
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<CompileAs>CompileAsC</CompileAs>
<DisableSpecificWarnings>4244;4100;4267;4189;4305;4127;4706;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4706;4456;4457;4305;4267;4244;4100;4189;4127;4706</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -371,7 +373,7 @@
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<CompileAs>CompileAsC</CompileAs>
<DisableSpecificWarnings>4244;4100;4267;4189;4305;4127;4706;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4706;4456;4457;4305;4267;4244;4100;4189;4127;4706</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -408,9 +410,8 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>CompileAsC</CompileAs>
<DisableSpecificWarnings>4244;4100;4267;4189;4305;4127;4706;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4706;4456;4457;4305;4267;4244;4100;4189;4127;4706</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -448,9 +449,8 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>CompileAsC</CompileAs>
<DisableSpecificWarnings>4244;4100;4267;4189;4305;4127;4706;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4706;4456;4457;4305;4267;4244;4100;4189;4127;4706</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down
12 changes: 8 additions & 4 deletions Sources/ThirdParty/libvorbis/libvorbisfile_dynamic.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DisableSpecificWarnings>4996;4244;4267</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;libvorbis.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -232,7 +232,7 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DisableSpecificWarnings>4996;4244;4267</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;libvorbis.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -264,6 +264,7 @@
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<CallingConvention>Cdecl</CallingConvention>
<DisableSpecificWarnings>4996;4244;4267</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;libvorbis.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -295,6 +296,7 @@
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<CallingConvention>Cdecl</CallingConvention>
<DisableSpecificWarnings>4996;4244;4267</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;libvorbis.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand All @@ -319,6 +321,7 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DisableSpecificWarnings>4996;4244;4267</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;libvorbis.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -346,6 +349,7 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DisableSpecificWarnings>4996;4244;4267</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;libvorbis.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -375,7 +379,7 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<DisableSpecificWarnings>4996;4244;4267</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;libvorbis.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -405,7 +409,7 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<DisableSpecificWarnings>4996;4244;4267</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>libogg.lib;libvorbis.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down
16 changes: 8 additions & 8 deletions Sources/ThirdParty/zlib/zlib.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<Optimization>Disabled</Optimization>
<WarningLevel>Level3</WarningLevel>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4333;4244</DisableSpecificWarnings>
<PreprocessorDefinitions>$(SE1Preproc);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
</ClCompile>
Expand All @@ -255,7 +255,7 @@
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<Optimization>Disabled</Optimization>
<WarningLevel>Level3</WarningLevel>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4333;4244</DisableSpecificWarnings>
<PreprocessorDefinitions>$(SE1Preproc);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
</ClCompile>
Expand All @@ -279,7 +279,7 @@
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<Optimization>Disabled</Optimization>
<WarningLevel>Level3</WarningLevel>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4333;4244</DisableSpecificWarnings>
<PreprocessorDefinitions>$(SE1Preproc);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
</ClCompile>
Expand All @@ -302,7 +302,7 @@
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<Optimization>Disabled</Optimization>
<WarningLevel>Level3</WarningLevel>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4333;4244</DisableSpecificWarnings>
<PreprocessorDefinitions>$(SE1Preproc);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
</ClCompile>
Expand All @@ -328,7 +328,7 @@
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<IntrinsicFunctions>true</IntrinsicFunctions>
<StringPooling>true</StringPooling>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4333;4244</DisableSpecificWarnings>
<PreprocessorDefinitions>$(SE1Preproc);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Midl>
Expand All @@ -354,7 +354,7 @@
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<IntrinsicFunctions>true</IntrinsicFunctions>
<StringPooling>true</StringPooling>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4333;4244</DisableSpecificWarnings>
<PreprocessorDefinitions>$(SE1Preproc);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Midl>
Expand All @@ -380,7 +380,7 @@
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<IntrinsicFunctions>true</IntrinsicFunctions>
<StringPooling>true</StringPooling>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4333;4244</DisableSpecificWarnings>
<PreprocessorDefinitions>$(SE1Preproc);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Midl>
Expand All @@ -405,7 +405,7 @@
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<IntrinsicFunctions>true</IntrinsicFunctions>
<StringPooling>true</StringPooling>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4333;4244</DisableSpecificWarnings>
<PreprocessorDefinitions>$(SE1Preproc);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Midl>
Expand Down

0 comments on commit a730b0b

Please sign in to comment.