From 0c0dddab1259e8b78b233d0788db39ceed3f2e0b Mon Sep 17 00:00:00 2001 From: Andrey Nekrasov Date: Thu, 26 Mar 2020 16:31:59 +0300 Subject: [PATCH] chore: fix WinRT-related warnings (#1710) --- .../msi_to_msix_upgrade_lib/msi_to_msix_upgrade_lib.vcxproj | 4 ++-- src/common/msi_to_msix_upgrade_lib/pch.h | 2 ++ src/common/notifications_winrt/BackgroundHandler.idl | 5 ++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade_lib.vcxproj b/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade_lib.vcxproj index 26f9cc00fc..b0e4168daa 100644 --- a/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade_lib.vcxproj +++ b/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade_lib.vcxproj @@ -89,7 +89,7 @@ Use - Level3 + Level4 true true true @@ -131,7 +131,7 @@ Use - Level3 + Level4 true _DEBUG;_LIB;%(PreprocessorDefinitions) true diff --git a/src/common/msi_to_msix_upgrade_lib/pch.h b/src/common/msi_to_msix_upgrade_lib/pch.h index d3445d47d1..3b153d0513 100644 --- a/src/common/msi_to_msix_upgrade_lib/pch.h +++ b/src/common/msi_to_msix_upgrade_lib/pch.h @@ -3,7 +3,9 @@ #ifndef PCH_H #define PCH_H +#pragma warning (disable: 5205) #include +#pragma warning (default: 5205) #include #include #include diff --git a/src/common/notifications_winrt/BackgroundHandler.idl b/src/common/notifications_winrt/BackgroundHandler.idl index 9a85cb8c0d..528ff5c57f 100644 --- a/src/common/notifications_winrt/BackgroundHandler.idl +++ b/src/common/notifications_winrt/BackgroundHandler.idl @@ -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); } }