summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Maps.WP8
diff options
context:
space:
mode:
authorkingces95 <kingces95@users.noreply.github.com>2016-04-13 16:15:21 (GMT)
committerRui Marinho <me@ruimarinho.net>2016-04-13 16:15:21 (GMT)
commit5809eb5d4e7cd5f596ed7ad0c0265605b9c9600e (patch)
tree85e92cd250eac4ad53a393d46e348d5ef71c5c1d /Xamarin.Forms.Maps.WP8
parent5569e3072d98c437a8f0cc91ef7479051136217f (diff)
downloadxamarin-forms-5809eb5d4e7cd5f596ed7ad0c0265605b9c9600e.zip
xamarin-forms-5809eb5d4e7cd5f596ed7ad0c0265605b9c9600e.tar.gz
xamarin-forms-5809eb5d4e7cd5f596ed7ad0c0265605b9c9600e.tar.bz2
Maps.WP8 warning as error mop up (#79)
Diffstat (limited to 'Xamarin.Forms.Maps.WP8')
-rw-r--r--Xamarin.Forms.Maps.WP8/MapRenderer.cs2
-rw-r--r--Xamarin.Forms.Maps.WP8/Xamarin.Forms.Maps.WP8.csproj9
2 files changed, 7 insertions, 4 deletions
diff --git a/Xamarin.Forms.Maps.WP8/MapRenderer.cs b/Xamarin.Forms.Maps.WP8/MapRenderer.cs
index eaac51d..34cb05f 100644
--- a/Xamarin.Forms.Maps.WP8/MapRenderer.cs
+++ b/Xamarin.Forms.Maps.WP8/MapRenderer.cs
@@ -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);
}
diff --git a/Xamarin.Forms.Maps.WP8/Xamarin.Forms.Maps.WP8.csproj b/Xamarin.Forms.Maps.WP8/Xamarin.Forms.Maps.WP8.csproj
index fcf0c31..332e9c7 100644
--- a/Xamarin.Forms.Maps.WP8/Xamarin.Forms.Maps.WP8.csproj
+++ b/Xamarin.Forms.Maps.WP8/Xamarin.Forms.Maps.WP8.csproj
@@ -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>
@@ -106,7 +108,8 @@
<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>