Skip to content

Commit

Permalink
Fix CA1008.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Dec 4, 2020
1 parent b220e3a commit 836bd82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Hast.Abstractions/Hast.Catapult.Abstractions/Constants.cs
@@ -1,4 +1,5 @@
using System;
using System;
using System.Diagnostics.CodeAnalysis;

namespace Hast.Catapult.Abstractions
{
Expand Down Expand Up @@ -172,6 +173,7 @@ public static class HandleFlag
public const uint WriteGolden = 0x0002000u;
}

[SuppressMessage("Design", "CA1008:Enums should have zero value", Justification = "Not applicable.")]
public enum Stat
{
CyclesLower = 8,
Expand Down
@@ -1,4 +1,5 @@
using System;
using System;
using System.Diagnostics.CodeAnalysis;


// Some of the enums are taken from OpenCL.NET:
Expand All @@ -17,6 +18,7 @@ namespace Hast.Vitis.Abstractions.Interop.Enums.OpenCl
/// <summary>
/// Represents an enumeration for the different types of information that can be queried from an OpenCl platform.
/// </summary>
[SuppressMessage("Design", "CA1008:Enums should have zero value", Justification = "Not applicable.")]
public enum PlatformInformation : uint
{
/// <summary>
Expand Down Expand Up @@ -222,6 +224,7 @@ public enum MemoryFlag : ulong
/// A bit-field that is used to specify migration options.
/// </summary>
[Flags]
[SuppressMessage("Design", "CA1008:Enums should have zero value", Justification = "From external library.")]
public enum MemoryMigrationFlag : ulong
{
/// <summary>
Expand Down

0 comments on commit 836bd82

Please sign in to comment.