# HG changeset patch # User Ivo Smits # Date 1366566079 -7200 # Node ID 2e3f57f326b379965b4778c1a34a573201a2395c # Parent c4a5dbe6251342afdeefd10406bd84665c355b3d Fixed some compiler warnings diff -r c4a5dbe62513 -r 2e3f57f326b3 Net/WebSocketPacketStream.cs --- a/Net/WebSocketPacketStream.cs Sun Apr 21 18:32:43 2013 +0200 +++ b/Net/WebSocketPacketStream.cs Sun Apr 21 19:41:19 2013 +0200 @@ -61,7 +61,7 @@ goto Failure; } if (closed) baseStream.Close(); - } catch (Exception ex) { + } catch (Exception) { closed = true; context.Close(); } finally { diff -r c4a5dbe62513 -r 2e3f57f326b3 USBLib/Communication/LibUsb1/LibUsb1Registry.cs --- a/USBLib/Communication/LibUsb1/LibUsb1Registry.cs Sun Apr 21 18:32:43 2013 +0200 +++ b/USBLib/Communication/LibUsb1/LibUsb1Registry.cs Sun Apr 21 19:41:19 2013 +0200 @@ -122,5 +122,9 @@ if (r == null) return false; return r.Device.DangerousGetHandle() == Device.DangerousGetHandle(); } + + public override int GetHashCode() { + return Device.DangerousGetHandle().GetHashCode(); + } } } diff -r c4a5dbe62513 -r 2e3f57f326b3 USBLib/Communication/USBIO/USBIODevice.cs --- a/USBLib/Communication/USBIO/USBIODevice.cs Sun Apr 21 18:32:43 2013 +0200 +++ b/USBLib/Communication/USBIO/USBIODevice.cs Sun Apr 21 19:41:19 2013 +0200 @@ -181,7 +181,6 @@ default: throw new ArgumentException(String.Format("Invalid request: 0x{0:X8}", request)); } - break; case UsbControlRequestType.TypeVendor: case UsbControlRequestType.TypeClass: USBIO_CLASS_OR_VENDOR_REQUEST req = new USBIO_CLASS_OR_VENDOR_REQUEST() { diff -r c4a5dbe62513 -r 2e3f57f326b3 Util/PrebufferingStream.cs --- a/Util/PrebufferingStream.cs Sun Apr 21 18:32:43 2013 +0200 +++ b/Util/PrebufferingStream.cs Sun Apr 21 19:41:19 2013 +0200 @@ -16,7 +16,7 @@ this.Count = count; base.SetCompleted(synchronously, error); } - public void SetCompleted(Boolean synchronously, Exception error) { + public new void SetCompleted(Boolean synchronously, Exception error) { base.SetCompleted(synchronously, error); } public int WaitForCompletion() {