mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-23 19:49:17 +08:00
[Analyzers][CPP]Turn on warning 4505 (#22301)
* Turn on warning 4505 supress it in the fancyzone tests * comment on disabled warnings * improving comments * change strategy to have less #pragma
This commit is contained in:
parent
f97cda9196
commit
d8b92662ba
@ -42,7 +42,7 @@
|
||||
<ClCompile>
|
||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DisableSpecificWarnings>26800;28251;6387;4505;4679;4702;6248;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings>26800;28251;6387;4679;4702;6248;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<DisableAnalyzeExternal >true</DisableAnalyzeExternal>
|
||||
<ExternalWarningLevel>TurnOffAllWarnings</ExternalWarningLevel>
|
||||
<ConformanceMode>false</ConformanceMode>
|
||||
|
@ -1,5 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
// disable warning 4505 -'function' : unreferenced local function has been removed
|
||||
// as not all functions from Util.h are used in this test
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4505)
|
||||
#include "FancyZonesLib/FancyZonesDataTypes.h"
|
||||
|
||||
namespace CustomAssert
|
||||
@ -145,3 +148,5 @@ std::wstring Microsoft::VisualStudio::CppUnitTestFramework::ToString(const std::
|
||||
str += L"}";
|
||||
return str;
|
||||
}
|
||||
|
||||
#pragma warning(pop)
|
Loading…
Reference in New Issue
Block a user