aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-06-12 20:08:37 -0700
committerJosh Blum <josh@joshknows.com>2011-06-14 17:27:47 -0700
commitb092b291082612dca65bd8910feb89856550e3f0 (patch)
treef442c83ee578da9d069bf4d94bb5ac806ffe8edf /host
parentf7c8ee26f9925d525615cf5a306832e64f7d4c1f (diff)
downloaduhd-b092b291082612dca65bd8910feb89856550e3f0.tar.gz
uhd-b092b291082612dca65bd8910feb89856550e3f0.tar.bz2
uhd-b092b291082612dca65bd8910feb89856550e3f0.zip
uhd: fix some warnings under msvc in sph
Diffstat (limited to 'host')
-rw-r--r--host/lib/transport/super_recv_packet_handler.hpp6
-rw-r--r--host/lib/transport/super_send_packet_handler.hpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/transport/super_recv_packet_handler.hpp b/host/lib/transport/super_recv_packet_handler.hpp
index 78d8dfce8..61b4379b6 100644
--- a/host/lib/transport/super_recv_packet_handler.hpp
+++ b/host/lib/transport/super_recv_packet_handler.hpp
@@ -192,7 +192,7 @@ public:
_converters[io_type] = uhd::convert::get_converter_otw_to_cpu(
io_type_t::tid_t(io_type), otw_type, 1, width
);
- }catch(const uhd::value_error &e){} //we expect this, not all io_types valid...
+ }catch(const uhd::value_error &){} //we expect this, not all io_types valid...
}
_bytes_per_item = otw_type.get_sample_size();
}
@@ -520,8 +520,8 @@ private:
alignment_check(index, curr_info);
std::swap(curr_info, next_info); //save progress from curr -> next
curr_info.metadata.has_time_spec = prev_info.metadata.has_time_spec;
- curr_info.metadata.time_spec = prev_info.metadata.time_spec + time_spec_t(
- 0.0, prev_info[index].ifpi.num_payload_words32*sizeof(boost::uint32_t)/_bytes_per_item, _samp_rate);
+ curr_info.metadata.time_spec = prev_info.metadata.time_spec + time_spec_t(0,
+ prev_info[index].ifpi.num_payload_words32*sizeof(boost::uint32_t)/_bytes_per_item, _samp_rate);
curr_info.metadata.more_fragments = false;
curr_info.metadata.fragment_offset = 0;
curr_info.metadata.start_of_burst = false;
diff --git a/host/lib/transport/super_send_packet_handler.hpp b/host/lib/transport/super_send_packet_handler.hpp
index 99d445180..8ebc264ef 100644
--- a/host/lib/transport/super_send_packet_handler.hpp
+++ b/host/lib/transport/super_send_packet_handler.hpp
@@ -113,7 +113,7 @@ public:
_converters[io_type] = uhd::convert::get_converter_cpu_to_otw(
io_type_t::tid_t(io_type), otw_type, 1, width
);
- }catch(const uhd::value_error &e){} //we expect this, not all io_types valid...
+ }catch(const uhd::value_error &){} //we expect this, not all io_types valid...
}
_bytes_per_item = otw_type.get_sample_size();
}