Skip to content

Commit 6b4c686

Browse files
committed
Increase warning level and treat warnings as errors in a release build.
1 parent acfa19a commit 6b4c686

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/Configure.vcxproj

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,13 @@
7272
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
7373
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
7474
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
75-
<WarningLevel>Level3</WarningLevel>
75+
<WarningLevel>EnableAllWarnings</WarningLevel>
76+
<ExternalWarningLevel>TurnOffAllWarnings</ExternalWarningLevel>
7677
<SuppressStartupBanner>true</SuppressStartupBanner>
7778
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
7879
<MultiProcessorCompilation>true</MultiProcessorCompilation>
7980
<LanguageStandard>stdcpp17</LanguageStandard>
81+
<AdditionalIncludeDirectories>$(ProjectDir)</AdditionalIncludeDirectories>
8082
</ClCompile>
8183
<Link>
8284
<AdditionalDependencies>rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -102,10 +104,13 @@
102104
<StringPooling>true</StringPooling>
103105
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
104106
<FunctionLevelLinking>true</FunctionLevelLinking>
105-
<WarningLevel>Level3</WarningLevel>
107+
<WarningLevel>EnableAllWarnings</WarningLevel>
108+
<ExternalWarningLevel>TurnOffAllWarnings</ExternalWarningLevel>
106109
<SuppressStartupBanner>true</SuppressStartupBanner>
107110
<MultiProcessorCompilation>true</MultiProcessorCompilation>
108111
<LanguageStandard>stdcpp17</LanguageStandard>
112+
<AdditionalIncludeDirectories>$(ProjectDir)</AdditionalIncludeDirectories>
113+
<TreatWarningAsError>true</TreatWarningAsError>
109114
</ClCompile>
110115
<Link>
111116
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
@@ -208,4 +213,4 @@
208213
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
209214
<ImportGroup Label="ExtensionTargets">
210215
</ImportGroup>
211-
</Project>
216+
</Project>

0 commit comments

Comments
 (0)