mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-24 05:01:11 +00:00
Suppressed a large amount of warnings for unused methods / fields in the platform bindings.
Replaced tab stops with spaces.
This commit is contained in:
parent
6545358593
commit
e5ad57e13d
|
@ -13,6 +13,8 @@ using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace OpenTK.Platform.MacOS
|
namespace OpenTK.Platform.MacOS
|
||||||
{
|
{
|
||||||
|
#pragma warning disable 0169
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Macintosh device type.
|
** Macintosh device type.
|
||||||
*/
|
*/
|
||||||
|
@ -458,5 +460,6 @@ namespace OpenTK.Platform.MacOS
|
||||||
[DllImport(agl)] static extern byte aglGetCGLContext(AGLContext ctx, void **cgl_ctx) ;
|
[DllImport(agl)] static extern byte aglGetCGLContext(AGLContext ctx, void **cgl_ctx) ;
|
||||||
[DllImport(agl)] static extern byte aglGetCGLPixelFormat(AGLPixelFormat pix, void **cgl_pix);
|
[DllImport(agl)] static extern byte aglGetCGLPixelFormat(AGLPixelFormat pix, void **cgl_pix);
|
||||||
|
|
||||||
|
#pragma warning restore 0169
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,11 +18,11 @@ using System.Security;
|
||||||
|
|
||||||
#pragma warning disable 3019 // CLS-compliance checking
|
#pragma warning disable 3019 // CLS-compliance checking
|
||||||
#pragma warning disable 0649 // struct members not explicitly initialized
|
#pragma warning disable 0649 // struct members not explicitly initialized
|
||||||
|
#pragma warning disable 0169 // field / method is never used.
|
||||||
|
#pragma warning disable 0414 // field assigned but never used.
|
||||||
|
|
||||||
namespace OpenTK.Platform.Windows
|
namespace OpenTK.Platform.Windows
|
||||||
{
|
{
|
||||||
#pragma warning disable 3019
|
|
||||||
|
|
||||||
#region Type aliases
|
#region Type aliases
|
||||||
|
|
||||||
using HWND = System.IntPtr;
|
using HWND = System.IntPtr;
|
||||||
|
@ -296,7 +296,7 @@ namespace OpenTK.Platform.Windows
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// Nonzero indicates that the function retrieves a message other than WM_QUIT.
|
/// Nonzero indicates that the function retrieves a message other than WM_QUIT.
|
||||||
/// Zero indicates that the function retrieves the WM_QUIT message, or that lpMsg is an invalid pointer.
|
/// Zero indicates that the function retrieves the WM_QUIT message, or that lpMsg is an invalid pointer.
|
||||||
/// –1 indicates that an error occurred — for example, the function fails if hWnd is an invalid window handle.
|
/// 1 indicates that an error occurred for example, the function fails if hWnd is an invalid window handle.
|
||||||
/// To get extended error information, call GetLastError.
|
/// To get extended error information, call GetLastError.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
[System.Security.SuppressUnmanagedCodeSecurity]
|
[System.Security.SuppressUnmanagedCodeSecurity]
|
||||||
|
@ -1431,8 +1431,6 @@ namespace OpenTK.Platform.Windows
|
||||||
|
|
||||||
#region PixelFormatDescriptor
|
#region PixelFormatDescriptor
|
||||||
|
|
||||||
#pragma warning disable 0169
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Describes a pixel format. It is used when interfacing with the WINAPI to create a new Context.
|
/// Describes a pixel format. It is used when interfacing with the WINAPI to create a new Context.
|
||||||
/// Found in WinGDI.h
|
/// Found in WinGDI.h
|
||||||
|
@ -1468,8 +1466,6 @@ namespace OpenTK.Platform.Windows
|
||||||
internal int DamageMask;
|
internal int DamageMask;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma warning restore 0169
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region internal class LayerPlaneDescriptor
|
#region internal class LayerPlaneDescriptor
|
||||||
|
@ -3716,3 +3712,8 @@ namespace OpenTK.Platform.Windows
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma warning restore 3019
|
||||||
|
#pragma warning restore 0649
|
||||||
|
#pragma warning restore 0169
|
||||||
|
#pragma warning restore 0414
|
|
@ -11,6 +11,11 @@ using System.Text;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
#pragma warning disable 3019 // CLS-compliance checking
|
||||||
|
#pragma warning disable 0649 // struct members not explicitly initialized
|
||||||
|
#pragma warning disable 0169 // field / method is never used.
|
||||||
|
#pragma warning disable 0414 // field assigned but never used.
|
||||||
|
|
||||||
namespace OpenTK.Platform.X11
|
namespace OpenTK.Platform.X11
|
||||||
{
|
{
|
||||||
#region Types
|
#region Types
|
||||||
|
@ -700,22 +705,16 @@ XF86VidModeGetGammaRampSize(
|
||||||
|
|
||||||
#region internal struct XRRScreenSize
|
#region internal struct XRRScreenSize
|
||||||
|
|
||||||
#pragma warning disable 0169, 0649
|
|
||||||
|
|
||||||
internal struct XRRScreenSize
|
internal struct XRRScreenSize
|
||||||
{
|
{
|
||||||
internal int Width, Height;
|
internal int Width, Height;
|
||||||
internal int MWidth, MHeight;
|
internal int MWidth, MHeight;
|
||||||
};
|
};
|
||||||
|
|
||||||
#pragma warning restore 0169, 0649
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region unsafe internal struct Screen
|
#region unsafe internal struct Screen
|
||||||
|
|
||||||
#pragma warning disable 0169
|
|
||||||
|
|
||||||
unsafe internal struct Screen
|
unsafe internal struct Screen
|
||||||
{
|
{
|
||||||
XExtData ext_data; /* hook for extension to hang buffer */
|
XExtData ext_data; /* hook for extension to hang buffer */
|
||||||
|
@ -737,14 +736,10 @@ XF86VidModeGetGammaRampSize(
|
||||||
long root_input_mask; /* initial root input mask */
|
long root_input_mask; /* initial root input mask */
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma warning restore 0169
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region unsafe internal class XExtData
|
#region unsafe internal class XExtData
|
||||||
|
|
||||||
#pragma warning disable 0169, 0649
|
|
||||||
|
|
||||||
unsafe internal class XExtData
|
unsafe internal class XExtData
|
||||||
{
|
{
|
||||||
int number; /* number returned by XRegisterExtension */
|
int number; /* number returned by XRegisterExtension */
|
||||||
|
@ -754,8 +749,6 @@ XF86VidModeGetGammaRampSize(
|
||||||
XPointer private_data; /* buffer private to this extension. */
|
XPointer private_data; /* buffer private to this extension. */
|
||||||
};
|
};
|
||||||
|
|
||||||
#pragma warning restore 0169, 0649
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Motif
|
#region Motif
|
||||||
|
@ -1593,3 +1586,8 @@ XF86VidModeGetGammaRampSize(
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma warning restore 3019
|
||||||
|
#pragma warning restore 0649
|
||||||
|
#pragma warning restore 0169
|
||||||
|
#pragma warning restore 0414
|
Loading…
Reference in a new issue