Fix warnings, enable warningsAsErrors

This commit is contained in:
Chris R 2016-02-01 12:33:38 -08:00
parent 247c46da1c
commit dfac28da89
7 changed files with 10 additions and 8 deletions

View File

@ -45,8 +45,8 @@ namespace TestClient
}
// RunWebSocketClient().Wait();
Console.WriteLine("Done");
Console.ReadKey();
// Console.WriteLine("Done");
// Console.ReadKey();
}
public static async Task RunWebSocketClient()

View File

@ -8,6 +8,7 @@
},
"compilationOptions": {
"allowUnsafe": true,
"warningsAsErrors": true,
"keyFile": "../../tools/Key.snk"
},
"frameworks": {

View File

@ -6,7 +6,6 @@ namespace System.Threading
{
internal readonly ThreadPoolBoundHandleOverlapped _overlapped;
private DeferredDisposableLifetime<PreAllocatedOverlapped> _lifetime;
[CLSCompliant(false)]
public PreAllocatedOverlapped(IOCompletionCallback callback, object state, object pinData)
{
if (callback == null)

View File

@ -46,7 +46,7 @@ namespace System.Threading
}
return new ThreadPoolBoundHandle(handle);
}
[CLSCompliant(false)]
public unsafe NativeOverlapped* AllocateNativeOverlapped(IOCompletionCallback callback, object state, object pinData)
{
if (callback == null)
@ -59,7 +59,7 @@ namespace System.Threading
_boundHandle = this
}._nativeOverlapped;
}
[CLSCompliant(false)]
public unsafe NativeOverlapped* AllocateNativeOverlapped(PreAllocatedOverlapped preAllocated)
{
if (preAllocated == null)
@ -86,7 +86,7 @@ namespace System.Threading
}
return nativeOverlapped;
}
[CLSCompliant(false)]
public unsafe void FreeNativeOverlapped(NativeOverlapped* overlapped)
{
if (overlapped == null)
@ -105,7 +105,7 @@ namespace System.Threading
}
Overlapped.Free(overlapped);
}
[CLSCompliant(false)]
public unsafe static object GetNativeOverlappedState(NativeOverlapped* overlapped)
{
if (overlapped == null)

View File

@ -7,6 +7,7 @@
},
"compilationOptions": {
"allowUnsafe": true,
"warningsAsErrors": true,
"keyFile": "../../tools/Key.snk"
},
"frameworks": {

View File

@ -66,7 +66,7 @@ namespace Microsoft.Net.WebSockets
private readonly ArraySegment<byte> _PropertyBuffer;
private readonly int _SendBufferSize;
private volatile int _PayloadOffset;
private volatile WebSocketReceiveResult _BufferedPayloadReceiveResult;
private WebSocketReceiveResult _BufferedPayloadReceiveResult;
private long _PinnedSendBufferStartAddress;
private long _PinnedSendBufferEndAddress;
private ArraySegment<byte> _PinnedSendBuffer;

View File

@ -6,6 +6,7 @@
},
"compilationOptions": {
"allowUnsafe": true,
"warningsAsErrors": true,
"keyFile": "../../tools/Key.snk"
},
"frameworks": {