Enable warnings 0649 and 0067 on UAP/WinRT (#73)
authorkingces95 <kingces95@users.noreply.github.com>
Mon, 11 Apr 2016 23:56:07 +0000 (16:56 -0700)
committerJason Smith <jason.smith@xamarin.com>
Mon, 11 Apr 2016 23:56:07 +0000 (16:56 -0700)
Xamarin.Forms.Platform.UAP/MasterDetailPageRenderer.cs
Xamarin.Forms.Platform.UAP/Xamarin.Forms.Platform.UAP.csproj
Xamarin.Forms.Platform.WinRT/ListViewRenderer.cs
Xamarin.Forms.Platform.WinRT/TextCellRenderer.cs

index c8c0978..e2ccb31 100644 (file)
@@ -98,7 +98,9 @@ namespace Xamarin.Forms.Platform.UWP
                        get { return Element; }
                }
 
+#pragma warning disable 0067 // Revisit: Can't remove; required by interface
                public event EventHandler<VisualElementChangedEventArgs> ElementChanged;
+#pragma warning restore
 
                public SizeRequest GetDesiredSize(double widthConstraint, double heightConstraint)
                {
index 88aef6f..ff9775e 100644 (file)
@@ -27,7 +27,7 @@
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
-    <NoWarn>1998;0649;0169;0067</NoWarn>
+    <NoWarn>1998;0618;0169</NoWarn>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <PlatformTarget>AnyCPU</PlatformTarget>
@@ -38,7 +38,7 @@
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
-    <NoWarn>1998;0649;0169;0067</NoWarn>
+    <NoWarn>1998;0618;0169</NoWarn>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
     <PlatformTarget>ARM</PlatformTarget>
index 5c23173..47ff326 100644 (file)
@@ -628,7 +628,7 @@ namespace Xamarin.Forms.Platform.WinRT
                }
 #endif
 
-               bool _deferSelection;
+               bool _deferSelection = false;
                Tuple<object, SelectedItemChangedEventArgs> _deferredSelectedItemChangedEvent;
        }
 }
\ No newline at end of file
index 7adf009..4d04a5e 100644 (file)
@@ -34,7 +34,9 @@ namespace Xamarin.Forms.Platform.WinRT
                        return true;
                }
 
+#pragma warning disable 0067 // Revisit: Can't remove; required by interface
                public event EventHandler CanExecuteChanged;
+#pragma warning restore
 
                public void Execute(object parameter)
                {