diff options
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/transport/nirio/nirio_driver_iface_win.cpp | 4 | ||||
-rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 2 | ||||
-rw-r--r-- | host/lib/usrp/e300/e300_sysfs_hooks.cpp | 5 | ||||
-rw-r--r-- | host/lib/usrp/usrp2/n200_image_loader.cpp | 4 | ||||
-rw-r--r-- | host/lib/usrp/x300/x300_image_loader.cpp | 2 |
5 files changed, 10 insertions, 7 deletions
diff --git a/host/lib/transport/nirio/nirio_driver_iface_win.cpp b/host/lib/transport/nirio/nirio_driver_iface_win.cpp index 717923176..c8484e953 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,2015 Ettus Research LLC +// Copyright 2013,2015-2016 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 @@ -66,7 +66,7 @@ nirio_status rio_ioctl( read_buf, static_cast<DWORD>(read_buf_len), &outLen, &zeroedOverlapped ))) { - int_fast32_t lastError = GetLastError(); + UHD_UNUSED(int_fast32_t lastError) = GetLastError(); return NiRio_Status_SoftwareFault; } diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index 386732cdf..565ce681a 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -349,7 +349,7 @@ b200_impl::b200_impl(const uhd::device_addr_t& device_addr, usb_device_handle::s handle = dev_handle; break; } - } catch (const uhd::exception &e) { continue; } + } catch (const uhd::exception&) { continue; } } UHD_ASSERT_THROW(handle.get() != NULL); //better be found diff --git a/host/lib/usrp/e300/e300_sysfs_hooks.cpp b/host/lib/usrp/e300/e300_sysfs_hooks.cpp index ee2ac21d7..7bd1d6d7e 100644 --- a/host/lib/usrp/e300/e300_sysfs_hooks.cpp +++ b/host/lib/usrp/e300/e300_sysfs_hooks.cpp @@ -65,10 +65,11 @@ std::string e300_get_sysfs_attr(const std::string &node, const std::string &attr dev = udev_device_new_from_syspath(udev, path); retstring = udev_device_get_sysattr_value(dev, attr.c_str()); - if (retstring.size()) - break; udev_device_unref(dev); + + if (retstring.size()) + break; } udev_enumerate_unref(enumerate); diff --git a/host/lib/usrp/usrp2/n200_image_loader.cpp b/host/lib/usrp/usrp2/n200_image_loader.cpp index 29bec8b4a..d6acfe39d 100644 --- a/host/lib/usrp/usrp2/n200_image_loader.cpp +++ b/host/lib/usrp/usrp2/n200_image_loader.cpp @@ -1,5 +1,5 @@ // -// Copyright 2015 Ettus Research LLC +// Copyright 2015-2016 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 @@ -201,7 +201,7 @@ static UHD_INLINE bool n200_response_matches(const n200_fw_update_data_t *pkt_in n200_fw_update_id_t pkt_code, size_t len){ return (len > offsetof(n200_fw_update_data_t, data) and - ntohl(pkt_in->id) == pkt_code); + ntohl(pkt_in->id) == (unsigned)pkt_code); } static uhd::device_addr_t n200_find(const image_loader::image_loader_args_t &image_loader_args){ diff --git a/host/lib/usrp/x300/x300_image_loader.cpp b/host/lib/usrp/x300/x300_image_loader.cpp index 9ec8a2e13..e8a1b5269 100644 --- a/host/lib/usrp/x300/x300_image_loader.cpp +++ b/host/lib/usrp/x300/x300_image_loader.cpp @@ -365,6 +365,7 @@ static void x300_ethernet_load(x300_session_t &session){ } else std::cout << "successful." << std::endl; } + std::cout << str(boost::format("Power-cycle the USRP %s to use the new image.") % session.dev_addr.get("product", "")) << std::endl; } static void x300_pcie_load(x300_session_t &session){ @@ -382,6 +383,7 @@ static void x300_pcie_load(x300_session_t &session){ niusrprio::nirio_status_to_exception(status, "NI-RIO reported the following error:"); } else std::cout << "successful." << std::endl; + std::cout << str(boost::format("Power-cycle the USRP %s to use the new image.") % session.dev_addr.get("product", "")) << std::endl; } static bool x300_image_loader(const image_loader::image_loader_args_t &image_loader_args){ |