Skip to content

Commit b5f2d17

Browse files
committed
Enable warnings as error on release builds
1 parent 6526bc7 commit b5f2d17

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

CppUTest.vcxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
<WarningLevel>Level3</WarningLevel>
152152
<SuppressStartupBanner>true</SuppressStartupBanner>
153153
<DebugInformationFormat>OldStyle</DebugInformationFormat>
154+
<TreatWarningAsError>true</TreatWarningAsError>
154155
</ClCompile>
155156
<ResourceCompile>
156157
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -185,6 +186,7 @@
185186
<WarningLevel>Level3</WarningLevel>
186187
<SuppressStartupBanner>true</SuppressStartupBanner>
187188
<DebugInformationFormat>OldStyle</DebugInformationFormat>
189+
<TreatWarningAsError>true</TreatWarningAsError>
188190
</ClCompile>
189191
<ResourceCompile>
190192
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>

tests/AllTests.vcxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
<SuppressStartupBanner>true</SuppressStartupBanner>
9595
<AdditionalIncludeDirectories>..\include;..\include\CppUTestExt\CppUTestGTest;..\include\CppUTestExt\CppUTestGMock;..\include\Platforms\VisualCpp;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
9696
<DebugInformationFormat>OldStyle</DebugInformationFormat>
97+
<TreatWarningAsError>true</TreatWarningAsError>
9798
</ClCompile>
9899
<ResourceCompile>
99100
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -132,6 +133,7 @@
132133
<SuppressStartupBanner>true</SuppressStartupBanner>
133134
<AdditionalIncludeDirectories>..\include;..\include\CppUTestExt\CppUTestGTest;..\include\CppUTestExt\CppUTestGMock;..\include\Platforms\VisualCpp;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
134135
<DebugInformationFormat>OldStyle</DebugInformationFormat>
136+
<TreatWarningAsError>true</TreatWarningAsError>
135137
</ClCompile>
136138
<ResourceCompile>
137139
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>

0 commit comments

Comments
 (0)