aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2015-03-27 10:55:48 -0700
committerMartin Braun <martin.braun@ettus.com>2015-03-27 13:36:18 -0700
commit715f4dd313656f936e40b6415179b7ab6feda128 (patch)
tree113d50bb315666e3374708d75de4d54bf7177f3a /host/lib/transport
parent88ffeb35dadb3d10593be39c9eae2f90c4d7c008 (diff)
downloaduhd-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/lib/transport')
-rw-r--r--host/lib/transport/chdr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/transport/chdr.cpp b/host/lib/transport/chdr.cpp
index 47ac961b9..632887e56 100644
--- a/host/lib/transport/chdr.cpp
+++ b/host/lib/transport/chdr.cpp
@@ -115,12 +115,12 @@ UHD_INLINE void _hdr_unpack_chdr(
if_packet_info.sob = false;
// Set configurable members
- if_packet_info.has_tsf = bool(chdr & HDR_FLAG_TSF);
+ if_packet_info.has_tsf = (chdr & HDR_FLAG_TSF) > 0;
if_packet_info.packet_type = if_packet_info_t::packet_type_t((chdr >> 30) & 0x3);
if_packet_info.eob = (if_packet_info.packet_type == if_packet_info_t::PACKET_TYPE_DATA)
- && bool(chdr & HDR_FLAG_EOB);
+ && ((chdr & HDR_FLAG_EOB) > 0);
if_packet_info.error = (if_packet_info.packet_type == if_packet_info_t::PACKET_TYPE_RESP)
- && bool(chdr & HDR_FLAG_ERROR);
+ && ((chdr & HDR_FLAG_ERROR) > 0);
if_packet_info.packet_count = (chdr >> 16) & 0xFFF;
// Set packet length variables