From 0ce526f302de68ece342545b4533aab699336028 Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Wed, 19 Aug 2015 11:13:20 -0700 Subject: Fixed minor warnings * Unreferenced exceptions in try-catch statements * Incorrect function documentation * Unlabelled unused variables --- host/lib/transport/nirio/nirio_driver_iface_win.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'host/lib/transport') 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(write_buf), static_cast(write_buf_len), read_buf, static_cast(read_buf_len), &outLen, &zeroedOverlapped ))) { - lastError = GetLastError(); + int_fast32_t lastError = GetLastError(); return NiRio_Status_SoftwareFault; } -- cgit v1.2.3