Maps.WP8 warning as error mop up (#79)
authorkingces95 <kingces95@users.noreply.github.com>
Wed, 13 Apr 2016 16:15:21 +0000 (09:15 -0700)
committerRui Marinho <me@ruimarinho.net>
Wed, 13 Apr 2016 16:15:21 +0000 (17:15 +0100)
Xamarin.Forms.Maps.WP8/MapRenderer.cs
Xamarin.Forms.Maps.WP8/Xamarin.Forms.Maps.WP8.csproj

index eaac51d..34cb05f 100644 (file)
@@ -163,7 +163,7 @@ namespace Xamarin.Forms.Maps.WP8
 
                void RemovePin(Pin pin)
                {
-                       var child = _pushPinLayer.FirstOrDefault(p => ((Pushpin)p.Content).Tag == pin);
+                       var child = _pushPinLayer.FirstOrDefault(p => ((Pushpin)p.Content).Tag == (object)pin);
                        if (child != null)
                                _pushPinLayer.Remove(child);
                }
index fcf0c31..332e9c7 100644 (file)
@@ -32,7 +32,8 @@
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
-    <NoWarn>0252</NoWarn>
+    <NoWarn>
+    </NoWarn>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <DebugType>pdbonly</DebugType>
@@ -44,7 +45,8 @@
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
-    <NoWarn>0252</NoWarn>
+    <NoWarn>
+    </NoWarn>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
     <DebugSymbols>true</DebugSymbols>
     <ErrorReport>prompt</ErrorReport>
     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
-    <NoWarn>0252</NoWarn>
+    <NoWarn>
+    </NoWarn>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Turkey|x86'">
     <DebugSymbols>true</DebugSymbols>