From 73d4cf227ef810b0b78a44cdebff28f98ad42a18 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 7 Feb 2017 16:21:42 +1100 Subject: [PATCH] less OpenTK warnings --- InteropPatcher/InteropPatcher.csproj | 3 --- OpenTK/Platform/Windows/API.cs | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/InteropPatcher/InteropPatcher.csproj b/InteropPatcher/InteropPatcher.csproj index 76eab144d..40ab7f11b 100644 --- a/InteropPatcher/InteropPatcher.csproj +++ b/InteropPatcher/InteropPatcher.csproj @@ -67,8 +67,5 @@ - - - \ No newline at end of file diff --git a/OpenTK/Platform/Windows/API.cs b/OpenTK/Platform/Windows/API.cs index fe9ce514e..961e251b5 100644 --- a/OpenTK/Platform/Windows/API.cs +++ b/OpenTK/Platform/Windows/API.cs @@ -183,6 +183,7 @@ namespace OpenTK.Platform.Windows { internal const int DISP_CHANGE_FAILED = -1; } + #pragma warning disable 0649 internal struct CreateStruct { internal IntPtr lpCreateParams; internal IntPtr hInstance; @@ -204,6 +205,7 @@ namespace OpenTK.Platform.Windows { public WindowStyle Old; public WindowStyle New; } + #pragma warning restore 0649 [StructLayout(LayoutKind.Sequential)] internal struct PixelFormatDescriptor {