diff options
author | Josh Blum <josh@joshknows.com> | 2011-11-27 01:25:25 -0500 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-11-27 01:25:25 -0500 |
commit | 435dc713e9ea5783729a2205a3c6fb9c9a3380b1 (patch) | |
tree | df60938f73b6a92e0dc807bb3da2e20b00ca25ad /gr-uhd/examples | |
parent | ffa9e710f5a23ad83b611e77ed717bdb01ea9d24 (diff) |
uhd: cleanup some -Wall warnings
Diffstat (limited to 'gr-uhd/examples')
-rw-r--r-- | gr-uhd/examples/tag_sink_demo.h | 5 | ||||
-rw-r--r-- | gr-uhd/examples/tag_source_demo.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gr-uhd/examples/tag_sink_demo.h b/gr-uhd/examples/tag_sink_demo.h index 524f0ae0f9..7d49bd9713 100644 --- a/gr-uhd/examples/tag_sink_demo.h +++ b/gr-uhd/examples/tag_sink_demo.h @@ -51,12 +51,13 @@ public: //print all tags BOOST_FOREACH(const gr_tag_t &rx_time_tag, rx_time_tags){ - const uint64_t count = rx_time_tag.offset; + const uint64_t offset = rx_time_tag.offset; const pmt::pmt_t &value = rx_time_tag.value; - std::cout << boost::format("Full seconds %u, Frac seconds %f") + std::cout << boost::format("Full seconds %u, Frac seconds %f, abs sample offset %u") % pmt::pmt_to_uint64(pmt_tuple_ref(value, 0)) % pmt::pmt_to_double(pmt_tuple_ref(value, 1)) + % offset << std::endl; } diff --git a/gr-uhd/examples/tag_source_demo.h b/gr-uhd/examples/tag_source_demo.h index a995762f79..9743c34075 100644 --- a/gr-uhd/examples/tag_source_demo.h +++ b/gr-uhd/examples/tag_source_demo.h @@ -122,7 +122,7 @@ private: const double _samp_rate; const uint64_t _samps_per_burst; const double _cycle_duration; - bool _do_new_burst; uint64_t _samps_left_in_burst; + bool _do_new_burst; }; |