aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/sph_recv_test.cpp
diff options
context:
space:
mode:
authorMichael Dickens <michael.dickens@ettus.com>2015-03-07 11:12:58 -0500
committerMartin Braun <martin.braun@ettus.com>2015-03-11 15:33:17 -0700
commita7049e4ff79cdc205db76bf7270219f254073961 (patch)
treed8dd37ecfaa3719a82c5aa3ce56f0d04faae01ef /host/tests/sph_recv_test.cpp
parenta4eee83b82a5f57b22c092e5f9dc825baf8fe6dd (diff)
downloaduhd-a7049e4ff79cdc205db76bf7270219f254073961.tar.gz
uhd-a7049e4ff79cdc205db76bf7270219f254073961.tar.bz2
uhd-a7049e4ff79cdc205db76bf7270219f254073961.zip
uhd: Fixed multiple compiler warnings
- Use ULL and LL etc. so compiler doesn't need to decide constant's types - define the empty 'while' loop to include {} to make older compilers happy - Use explicit type names for BOOST_CHECK_EQUAL
Diffstat (limited to 'host/tests/sph_recv_test.cpp')
-rw-r--r--host/tests/sph_recv_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/tests/sph_recv_test.cpp b/host/tests/sph_recv_test.cpp
index 5dd0761db..e8c51b847 100644
--- a/host/tests/sph_recv_test.cpp
+++ b/host/tests/sph_recv_test.cpp
@@ -675,7 +675,7 @@ BOOST_AUTO_TEST_CASE(test_sph_recv_multi_channel_fragment){
BOOST_CHECK_EQUAL(metadata.error_code, uhd::rx_metadata_t::ERROR_CODE_NONE);
BOOST_CHECK(metadata.has_time_spec);
BOOST_CHECK_TS_CLOSE(metadata.time_spec, uhd::time_spec_t::from_ticks(num_accum_samps, SAMP_RATE));
- BOOST_CHECK_EQUAL(num_samps_ret, 10);
+ BOOST_CHECK_EQUAL(num_samps_ret, (size_t)10);
num_accum_samps += num_samps_ret;
if (not metadata.more_fragments) continue;
@@ -685,7 +685,7 @@ BOOST_AUTO_TEST_CASE(test_sph_recv_multi_channel_fragment){
);
BOOST_CHECK_EQUAL(metadata.error_code, uhd::rx_metadata_t::ERROR_CODE_NONE);
BOOST_CHECK(not metadata.more_fragments);
- BOOST_CHECK_EQUAL(metadata.fragment_offset, 10);
+ BOOST_CHECK_EQUAL(metadata.fragment_offset, (size_t)10);
BOOST_CHECK(metadata.has_time_spec);
BOOST_CHECK_TS_CLOSE(metadata.time_spec, uhd::time_spec_t::from_ticks(num_accum_samps, SAMP_RATE));
BOOST_CHECK_EQUAL(num_samps_ret, i%10);