From 305d0e79e219b427c6425dab0715ed2132d928b8 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 19 Feb 2018 14:16:24 -0800 Subject: examples: Fix some minor compiler warnings All warnings reported by MSVC. Mostly related to narrowing conversions. --- host/utils/query_gpsdo_sensors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/utils/query_gpsdo_sensors.cpp') diff --git a/host/utils/query_gpsdo_sensors.cpp b/host/utils/query_gpsdo_sensors.cpp index b839cd499..7b3c6f057 100644 --- a/host/utils/query_gpsdo_sensors.cpp +++ b/host/utils/query_gpsdo_sensors.cpp @@ -52,7 +52,7 @@ int query_clock_sensors(const std::string &args) { std::cout << boost::format("%s\n%s\n") % gga_string.to_pp_string() % rmc_string.to_pp_string(); std::cout << boost::format("\nPrinting GPS servo status:\n"); std::cout << boost::format("%s\n\n") % servo_string.to_pp_string(); - } catch (uhd::lookup_error &e) { + } catch (const uhd::lookup_error &) { std::cout << "NMEA strings not implemented for this device." << std::endl; } std::cout << boost::format("GPS Epoch time: %.5f seconds\n") % clock->get_sensor("gps_time").to_real(); -- cgit v1.2.3