mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +08:00
chore: fix WinRT-related warnings (#1710)
This commit is contained in:
parent
1c39b76b83
commit
0c0dddab12
@ -89,7 +89,7 @@
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
@ -131,7 +131,7 @@
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
|
@ -3,7 +3,9 @@
|
||||
#ifndef PCH_H
|
||||
#define PCH_H
|
||||
|
||||
#pragma warning (disable: 5205)
|
||||
#include <winrt/base.h>
|
||||
#pragma warning (default: 5205)
|
||||
#include <Windows.h>
|
||||
#include <MsiQuery.h>
|
||||
#include <Shlwapi.h>
|
||||
|
@ -1,11 +1,10 @@
|
||||
namespace PowerToysNotifications
|
||||
{
|
||||
[version(1)]
|
||||
[default_interface]
|
||||
runtimeclass BackgroundHandler : Windows.ApplicationModel.Background.IBackgroundTask
|
||||
runtimeclass BackgroundHandler
|
||||
{
|
||||
BackgroundHandler();
|
||||
|
||||
|
||||
void Run(Windows.ApplicationModel.Background.IBackgroundTaskInstance taskInstance);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user