Skip to content

Commit c4cd666

Browse files
committed
Added supression for neccesary warning causing build error
1 parent 290d15a commit c4cd666

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

components/AccentAnalyzer/src/AccentAnalyzer.Properties.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
using Microsoft.UI;
66
using Microsoft.UI.Dispatching;
7-
using Microsoft.UI.Xaml.Media.Imaging;
8-
using System.Numerics;
97
using System.Windows.Input;
108
using Windows.UI;
119

components/AccentAnalyzer/src/AccentAnalyzer.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ public partial class AccentAnalyzer : DependencyObject
1818
{
1919
private partial class Command(Action action) : ICommand
2020
{
21+
// This is ridiculous, but the event must be here since it's part of the ICommand interface,
22+
// however without supression it causes an error that prevents the CI from building.
23+
#pragma warning disable CS0067
24+
2125
/// <inheritdoc/>
2226
public event EventHandler? CanExecuteChanged;
2327

28+
#pragma warning restore CS0067
29+
2430
/// <inheritdoc/>
2531
public bool CanExecute(object? parameter) => true;
2632

0 commit comments

Comments
 (0)