Suppressed a large amount of warnings for unused methods / fields in the platform bindings.

Replaced tab stops with spaces.
This commit is contained in:
the_fiddler 2009-02-22 12:10:36 +00:00
parent 39710404ee
commit 8da8023c97
4 changed files with 164 additions and 162 deletions

View file

@ -13,6 +13,8 @@ using System.Runtime.InteropServices;
namespace OpenTK.Platform.MacOS
{
#pragma warning disable 0169
/*
** 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 aglGetCGLPixelFormat(AGLPixelFormat pix, void **cgl_pix);
#pragma warning restore 0169
}
}

View file

@ -18,11 +18,11 @@ using System.Security;
#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.Windows
{
#pragma warning disable 3019
#region Type aliases
using HWND = System.IntPtr;
@ -296,7 +296,7 @@ namespace OpenTK.Platform.Windows
/// <returns>
/// 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.
/// 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.
/// </returns>
[System.Security.SuppressUnmanagedCodeSecurity]
@ -1431,8 +1431,6 @@ namespace OpenTK.Platform.Windows
#region PixelFormatDescriptor
#pragma warning disable 0169
/// <summary>
/// Describes a pixel format. It is used when interfacing with the WINAPI to create a new Context.
/// Found in WinGDI.h
@ -1468,8 +1466,6 @@ namespace OpenTK.Platform.Windows
internal int DamageMask;
}
#pragma warning restore 0169
#endregion
#region internal class LayerPlaneDescriptor
@ -3716,3 +3712,8 @@ namespace OpenTK.Platform.Windows
#endregion
}
#pragma warning restore 3019
#pragma warning restore 0649
#pragma warning restore 0169
#pragma warning restore 0414

View file

@ -11,6 +11,11 @@ using System.Text;
using System.Runtime.InteropServices;
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
{
#region Types
@ -700,22 +705,16 @@ XF86VidModeGetGammaRampSize(
#region internal struct XRRScreenSize
#pragma warning disable 0169, 0649
internal struct XRRScreenSize
{
internal int Width, Height;
internal int MWidth, MHeight;
};
#pragma warning restore 0169, 0649
#endregion
#region unsafe internal struct Screen
#pragma warning disable 0169
unsafe internal struct Screen
{
XExtData ext_data; /* hook for extension to hang buffer */
@ -737,14 +736,10 @@ XF86VidModeGetGammaRampSize(
long root_input_mask; /* initial root input mask */
}
#pragma warning restore 0169
#endregion
#region unsafe internal class XExtData
#pragma warning disable 0169, 0649
unsafe internal class XExtData
{
int number; /* number returned by XRegisterExtension */
@ -754,8 +749,6 @@ XF86VidModeGetGammaRampSize(
XPointer private_data; /* buffer private to this extension. */
};
#pragma warning restore 0169, 0649
#endregion
#region Motif
@ -1593,3 +1586,8 @@ XF86VidModeGetGammaRampSize(
}
*/
}
#pragma warning restore 3019
#pragma warning restore 0649
#pragma warning restore 0169
#pragma warning restore 0414