aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
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/examples
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/examples')
-rw-r--r--host/examples/benchmark_rate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/examples/benchmark_rate.cpp b/host/examples/benchmark_rate.cpp
index 7ff8b9939..cc3ef04a4 100644
--- a/host/examples/benchmark_rate.cpp
+++ b/host/examples/benchmark_rate.cpp
@@ -142,7 +142,7 @@ void benchmark_tx_rate(
md.has_time_spec = (buffs.size() != 1);
if (random_nsamps) {
- std::srand( time(NULL) );
+ std::srand( (unsigned int)time(NULL) );
while(not boost::this_thread::interruption_requested()){
size_t total_num_samps = rand() % max_samps_per_packet;
size_t num_acc_samps = 0;