summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Maps.UWP
diff options
context:
space:
mode:
authorkingces95 <kingces95@users.noreply.github.com>2016-04-12 18:44:30 (GMT)
committerJason Smith <jason.smith@xamarin.com>2016-04-12 18:44:30 (GMT)
commit10f6c08ceb89b8b302cb41dd6fe7b1ccf70884ba (patch)
treeb9bd7f86a3650b2fedcf762b18c25699ff44f82e /Xamarin.Forms.Maps.UWP
parent73defe491f11fc417a22eebcf805ee20df90045a (diff)
downloadxamarin-forms-10f6c08ceb89b8b302cb41dd6fe7b1ccf70884ba.zip
xamarin-forms-10f6c08ceb89b8b302cb41dd6fe7b1ccf70884ba.tar.gz
xamarin-forms-10f6c08ceb89b8b302cb41dd6fe7b1ccf70884ba.tar.bz2
Mop up enabling warnings as errors (#78)
Diffstat (limited to 'Xamarin.Forms.Maps.UWP')
-rw-r--r--Xamarin.Forms.Maps.UWP/MapRenderer.cs2
-rw-r--r--Xamarin.Forms.Maps.UWP/Xamarin.Forms.Maps.UWP.csproj6
2 files changed, 6 insertions, 2 deletions
diff --git a/Xamarin.Forms.Maps.UWP/MapRenderer.cs b/Xamarin.Forms.Maps.UWP/MapRenderer.cs
index 4d3564e..f8a4c87 100644
--- a/Xamarin.Forms.Maps.UWP/MapRenderer.cs
+++ b/Xamarin.Forms.Maps.UWP/MapRenderer.cs
@@ -133,7 +133,9 @@ namespace Xamarin.Forms.Maps.WinRT
void ClearPins()
{
Control.Children.Clear();
+#pragma warning disable 4014 // don't wanna block UI thread
UpdateIsShowingUser();
+#pragma warning restore
}
void RemovePin(Pin pinToRemove)
diff --git a/Xamarin.Forms.Maps.UWP/Xamarin.Forms.Maps.UWP.csproj b/Xamarin.Forms.Maps.UWP/Xamarin.Forms.Maps.UWP.csproj
index 92108fe..654f773 100644
--- a/Xamarin.Forms.Maps.UWP/Xamarin.Forms.Maps.UWP.csproj
+++ b/Xamarin.Forms.Maps.UWP/Xamarin.Forms.Maps.UWP.csproj
@@ -27,7 +27,8 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>4014</NoWarn>
+ <NoWarn>
+ </NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -38,7 +39,8 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>4014</NoWarn>
+ <NoWarn>
+ </NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<PlatformTarget>x86</PlatformTarget>