aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/chdr_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/chdr_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/chdr_test.cpp')
-rw-r--r--host/tests/chdr_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/host/tests/chdr_test.cpp b/host/tests/chdr_test.cpp
index 8893e12e5..ed6c690f9 100644
--- a/host/tests/chdr_test.cpp
+++ b/host/tests/chdr_test.cpp
@@ -81,7 +81,7 @@ BOOST_AUTO_TEST_CASE(test_with_chdr){
if_packet_info.eob = false;
if_packet_info.packet_count = 7;
if_packet_info.has_tsf = true;
- if_packet_info.tsf = 0x1234567890ABCDEF;
+ if_packet_info.tsf = 0x1234567890ABCDEFull;
if_packet_info.sid = 0xAABBCCDD;
if_packet_info.num_payload_words32 = 24;
if_packet_info.num_payload_bytes = 95;
@@ -94,7 +94,7 @@ BOOST_AUTO_TEST_CASE(test_with_chdr_fc){
if_packet_info.eob = false;
if_packet_info.packet_count = 19;
if_packet_info.has_tsf = false;
- if_packet_info.tsf = 0x1234567890ABCDEF;
+ if_packet_info.tsf = 0x1234567890ABCDEFull;
if_packet_info.sid = 0xAABBCCDD;
if_packet_info.num_payload_words32 = 4;
if_packet_info.num_payload_bytes = 16;
@@ -106,7 +106,7 @@ BOOST_AUTO_TEST_CASE(test_with_chdr_cmd){
if_packet_info.packet_type = if_packet_info_t::PACKET_TYPE_CMD;
if_packet_info.packet_count = 19;
if_packet_info.has_tsf = true;
- if_packet_info.tsf = 0x1234567890ABCDEF;
+ if_packet_info.tsf = 0x1234567890ABCDEFull;
if_packet_info.sid = 0xAABBCCDD;
if_packet_info.num_payload_words32 = 4;
if_packet_info.num_payload_bytes = 16;
@@ -118,7 +118,7 @@ BOOST_AUTO_TEST_CASE(test_with_chdr_resp){
if_packet_info.packet_type = if_packet_info_t::PACKET_TYPE_RESP;
if_packet_info.packet_count = 123;
if_packet_info.has_tsf = false;
- if_packet_info.tsf = 0x1234567890ABCDEF;
+ if_packet_info.tsf = 0x1234567890ABCDEFull;
if_packet_info.sid = 0xAABBCCDD;
if_packet_info.num_payload_words32 = 4;
if_packet_info.num_payload_bytes = 16;
@@ -132,7 +132,7 @@ BOOST_AUTO_TEST_CASE(test_with_chdr_err){
if_packet_info.eob = false;
if_packet_info.error = false; // Needs to be set explicitly
if_packet_info.has_tsf = false;
- if_packet_info.tsf = 0x1234567890ABCDEF;
+ if_packet_info.tsf = 0x1234567890ABCDEFull;
if_packet_info.sid = 0xAABBCCDD;
if_packet_info.num_payload_words32 = 4;
if_packet_info.num_payload_bytes = 16;