Mercurial > hg > ucis.core
changeset 37:2e3f57f326b3
Fixed some compiler warnings
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sun, 21 Apr 2013 19:41:19 +0200 |
parents | c4a5dbe62513 |
children | a9c4fed19e99 41b2d01ae458 |
files | Net/WebSocketPacketStream.cs USBLib/Communication/LibUsb1/LibUsb1Registry.cs USBLib/Communication/USBIO/USBIODevice.cs Util/PrebufferingStream.cs |
diffstat | 4 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 {
--- 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(); + } } }
--- 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() {
--- 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() {