summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authorPaul DiPietro <paul.dipietro@me.com>2016-04-12 12:30:27 -0700
committerJason Smith <jason.smith@xamarin.com>2016-04-12 12:30:27 -0700
commitb42460c2c32a5b24a3f344121876534e61399140 (patch)
treec65a4dc15ae21c267a2d4ee60d5a40a532be10c5 /Xamarin.Forms.Platform.Android
parent10f6c08ceb89b8b302cb41dd6fe7b1ccf70884ba (diff)
downloadxamarin-forms-b42460c2c32a5b24a3f344121876534e61399140.tar.gz
xamarin-forms-b42460c2c32a5b24a3f344121876534e61399140.tar.bz2
xamarin-forms-b42460c2c32a5b24a3f344121876534e61399140.zip
Enable CS1998 warnings as errors (#65)
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs4
-rw-r--r--Xamarin.Forms.Platform.Android/Xamarin.Forms.Platform.Android.csproj7
2 files changed, 6 insertions, 5 deletions
diff --git a/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs b/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs
index 7fd4ed94..b93a0eb9 100644
--- a/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs
@@ -362,7 +362,9 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
UpdateToolbar();
}
- void DeviceInfoPropertyChanged(object sender, PropertyChangedEventArgs e)
+#pragma warning disable 1998 // considered for removal
+ async void DeviceInfoPropertyChanged(object sender, PropertyChangedEventArgs e)
+#pragma warning restore 1998
{
if (nameof(Device.Info.CurrentOrientation) == e.PropertyName)
ResetToolbar();
diff --git a/Xamarin.Forms.Platform.Android/Xamarin.Forms.Platform.Android.csproj b/Xamarin.Forms.Platform.Android/Xamarin.Forms.Platform.Android.csproj
index 2ec3cccb..da51f29a 100644
--- a/Xamarin.Forms.Platform.Android/Xamarin.Forms.Platform.Android.csproj
+++ b/Xamarin.Forms.Platform.Android/Xamarin.Forms.Platform.Android.csproj
@@ -28,8 +28,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>
- </NoWarn>
+ <NoWarn>0642;0114;0108;0672;0168;0169;0184;0649;0414</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -39,7 +38,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0642;0114;0108;0672;0168;0169;0184;0649;1998;0414</NoWarn>
+ <NoWarn>0642;0114;0108;0672;0168;0169;0184;0649;0414</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Turkey|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
@@ -51,7 +50,7 @@
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0642;0114;0108;0672;0168;0169;0184;0649;1998;0414</NoWarn>
+ <NoWarn>0642;0114;0108;0672;0168;0169;0184;0649;0414</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />