summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls
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.Controls
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.Controls')
-rw-r--r--Xamarin.Forms.Controls/ControlGalleryPages/AutomationIDGallery.cs4
-rw-r--r--Xamarin.Forms.Controls/Xamarin.Forms.Controls.csproj6
2 files changed, 5 insertions, 5 deletions
diff --git a/Xamarin.Forms.Controls/ControlGalleryPages/AutomationIDGallery.cs b/Xamarin.Forms.Controls/ControlGalleryPages/AutomationIDGallery.cs
index c93a9b69..4ba26667 100644
--- a/Xamarin.Forms.Controls/ControlGalleryPages/AutomationIDGallery.cs
+++ b/Xamarin.Forms.Controls/ControlGalleryPages/AutomationIDGallery.cs
@@ -43,7 +43,7 @@ namespace Xamarin.Forms.Controls
var btn = new Button {
AutomationId = "popModal",
Text = "Pop",
- Command = new Command (async () => Navigation.PopModalAsync ())
+ Command = new Command (async () => await Navigation.PopModalAsync ())
};
rootLayout.Children.Add (btn);
rootLayout.Children.Add (new ActivityIndicator { AutomationId = "actHello", IsRunning = true });
@@ -72,7 +72,7 @@ namespace Xamarin.Forms.Controls
var btn = new Button {
AutomationId = "popModal",
Text = "Pop",
- Command = new Command (async () => Navigation.PopModalAsync ())
+ Command = new Command (async () => await Navigation.PopModalAsync ())
};
rootLayout.Children.Add (btn);
rootLayout.Children.Add (new Image { AutomationId = "imgHello", Source = "menuIcon" });
diff --git a/Xamarin.Forms.Controls/Xamarin.Forms.Controls.csproj b/Xamarin.Forms.Controls/Xamarin.Forms.Controls.csproj
index 05a7b5f0..b5dd6af5 100644
--- a/Xamarin.Forms.Controls/Xamarin.Forms.Controls.csproj
+++ b/Xamarin.Forms.Controls/Xamarin.Forms.Controls.csproj
@@ -28,7 +28,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;0109;4014;1998;0649;0169;0472;0414;0168;0219;0429</NoWarn>
+ <NoWarn>0114;0108;0109;4014;0649;0169;0472;0414;0168;0219;0429</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -38,7 +38,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;0109;4014;1998;0649;0169;0472;0414;0168;0219;0429</NoWarn>
+ <NoWarn>0114;0108;0109;4014;0649;0169;0472;0414;0168;0219;0429</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Turkey|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
@@ -51,7 +51,7 @@
<WarningLevel>4</WarningLevel>
<Optimize>false</Optimize>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;0109;4014;1998;0649;0169;0472;0414;0168;0219;0429</NoWarn>
+ <NoWarn>0114;0108;0109;4014;0649;0169;0472;0414;0168;0219;0429</NoWarn>
</PropertyGroup>
<ItemGroup>
<!-- A reference to the entire .NET Framework is automatically included -->