diff options
author | Bastian Bloessl <mail@bastibl.net> | 2019-08-27 18:23:02 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-09-05 13:14:21 +0200 |
commit | b151c0282cd948f37447f967dad61858606da641 (patch) | |
tree | 1baef1edaf38309750493bab40238b78bb23c12f /gr-uhd/examples/c++ | |
parent | b6cba4632feac9c43672bce863c7652abe5ae03d (diff) |
delete unused variables
Diffstat (limited to 'gr-uhd/examples/c++')
-rw-r--r-- | gr-uhd/examples/c++/tag_source_demo.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gr-uhd/examples/c++/tag_source_demo.h b/gr-uhd/examples/c++/tag_source_demo.h index 9211bf5f04..c16985138e 100644 --- a/gr-uhd/examples/c++/tag_source_demo.h +++ b/gr-uhd/examples/c++/tag_source_demo.h @@ -109,10 +109,11 @@ public: _do_new_burst = false; _samps_left_in_burst = _samps_per_burst; - if (pmt::is_null(_length_tag_key)) + if (pmt::is_null(_length_tag_key)) { this->make_sob_tag(this->nitems_written(0)); - else + } else { #if 1 + (void)_samp_rate; // avoid unused variable warning this->make_length_tag(this->nitems_written(0), _samps_left_in_burst); #else // Test usrp_sink's ability to cancel remainder of burst if new length_tag @@ -123,6 +124,7 @@ public: this->make_length_tag(this->nitems_written(0), uint64_t(1.1 * _samp_rate * _cycle_duration)); #endif + } this->make_time_tag(this->nitems_written(0)); _time_fracs += _cycle_duration; |