diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2015-08-19 11:13:20 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-09-01 13:23:19 -0700 |
commit | 0ce526f302de68ece342545b4533aab699336028 (patch) | |
tree | 5d61c92a78ddb09225930701d53239c163a21e6b /host/lib/transport/nirio/nirio_driver_iface_win.cpp | |
parent | 4cfa04f771649245148b7c993d52fdd34225b08e (diff) | |
download | uhd-0ce526f302de68ece342545b4533aab699336028.tar.gz uhd-0ce526f302de68ece342545b4533aab699336028.tar.bz2 uhd-0ce526f302de68ece342545b4533aab699336028.zip |
Fixed minor warnings
* Unreferenced exceptions in try-catch statements
* Incorrect function documentation
* Unlabelled unused variables
Diffstat (limited to 'host/lib/transport/nirio/nirio_driver_iface_win.cpp')
-rw-r--r-- | host/lib/transport/nirio/nirio_driver_iface_win.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/host/lib/transport/nirio/nirio_driver_iface_win.cpp b/host/lib/transport/nirio/nirio_driver_iface_win.cpp index b47c6ce85..717923176 100644 --- a/host/lib/transport/nirio/nirio_driver_iface_win.cpp +++ b/host/lib/transport/nirio/nirio_driver_iface_win.cpp @@ -1,5 +1,5 @@ // -// Copyright 2013 Ettus Research LLC +// Copyright 2013,2015 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -60,14 +60,13 @@ nirio_status rio_ioctl( * DeviceIoControl, even when doing synchronous IO. */ OVERLAPPED zeroedOverlapped = {0}; DWORD outLen = 0; - int_fast32_t lastError = 0; if (!(DeviceIoControl(device_handle, ioctl_code, const_cast<void*>(write_buf), static_cast<DWORD>(write_buf_len), read_buf, static_cast<DWORD>(read_buf_len), &outLen, &zeroedOverlapped ))) { - lastError = GetLastError(); + int_fast32_t lastError = GetLastError(); return NiRio_Status_SoftwareFault; } |