Skip to content

Commit a6a697a

Browse files
committed
Suppress incorrect 'IDE0004' warning
1 parent 46c0cb5 commit a6a697a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ partial class DeviceHelper
1818
#if DEBUG
1919
DXGI.DXGI_CREATE_FACTORY_DEBUG;
2020
#else
21+
#pragma warning disable IDE0004 // See: https://github.com/dotnet/roslyn/issues/79180
2122
Configuration.IsDebugOutputEnabled ? (uint)DXGI.DXGI_CREATE_FACTORY_DEBUG : 0;
23+
#pragma warning restore IDE0004
2224
#endif
2325

2426
/// <summary>

0 commit comments

Comments
 (0)