diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2015-03-27 10:55:48 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-03-27 13:36:18 -0700 |
commit | 715f4dd313656f936e40b6415179b7ab6feda128 (patch) | |
tree | 113d50bb315666e3374708d75de4d54bf7177f3a /host/tests | |
parent | 88ffeb35dadb3d10593be39c9eae2f90c4d7c008 (diff) | |
download | uhd-715f4dd313656f936e40b6415179b7ab6feda128.tar.gz uhd-715f4dd313656f936e40b6415179b7ab6feda128.tar.bz2 uhd-715f4dd313656f936e40b6415179b7ab6feda128.zip |
Fixed master-specific warnings
* MinGW: unused parameter warning, MSVC-specific pragma
* MSVC: bool narrowing
Diffstat (limited to 'host/tests')
-rw-r--r-- | host/tests/chdr_test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/host/tests/chdr_test.cpp b/host/tests/chdr_test.cpp index ed6c690f9..f48073a09 100644 --- a/host/tests/chdr_test.cpp +++ b/host/tests/chdr_test.cpp @@ -47,7 +47,10 @@ static void pack_and_unpack( ); std::cout << std::endl; boost::uint32_t header_bits = (uhd::ntohx(packet_buff[0]) >> 28); - std::cout << boost::format("header bits = 0b%d%d%d%d") % bool(header_bits & 8) % bool(header_bits & 4) % bool(header_bits & 2) % bool(header_bits & 1) << std::endl; + std::cout << boost::format("header bits = 0b%d%d%d%d") % ((header_bits & 8) > 0) + % ((header_bits & 4) > 0) + % ((header_bits & 2) > 0) + % ((header_bits & 1) > 0) << std::endl; for (size_t i = 0; i < 5; i++) { std::cout << boost::format("packet_buff[%u] = 0x%08x") % i % uhd::ntohx(packet_buff[i]) << std::endl; |