summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/lib/general/gr_log2_const.h2
-rw-r--r--gnuradio-core/src/lib/general/gr_packed_to_unpacked_XX.cc.t2
-rw-r--r--gnuradio-core/src/lib/general/gr_unpacked_to_packed_XX.cc.t2
-rw-r--r--gnuradio-core/src/lib/general/gri_agc2_cc.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/gnuradio-core/src/lib/general/gr_log2_const.h b/gnuradio-core/src/lib/general/gr_log2_const.h
index eb73983eb..0c27bbcce 100644
--- a/gnuradio-core/src/lib/general/gr_log2_const.h
+++ b/gnuradio-core/src/lib/general/gr_log2_const.h
@@ -29,7 +29,7 @@
#include <assert.h>
-template<unsigned int k> static inline int gr_log2_const() { assert(0); }
+template<unsigned int k> static inline int gr_log2_const() { assert(0); return 0; }
template<> static inline int gr_log2_const<1>() { return 0; }
template<> static inline int gr_log2_const<2>() { return 1; }
diff --git a/gnuradio-core/src/lib/general/gr_packed_to_unpacked_XX.cc.t b/gnuradio-core/src/lib/general/gr_packed_to_unpacked_XX.cc.t
index 15e859026..388def8f9 100644
--- a/gnuradio-core/src/lib/general/gr_packed_to_unpacked_XX.cc.t
+++ b/gnuradio-core/src/lib/general/gr_packed_to_unpacked_XX.cc.t
@@ -87,7 +87,7 @@ int
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
{
- unsigned int index_tmp;
+ unsigned int index_tmp = d_index;
assert (input_items.size() == output_items.size());
int nstreams = input_items.size();
diff --git a/gnuradio-core/src/lib/general/gr_unpacked_to_packed_XX.cc.t b/gnuradio-core/src/lib/general/gr_unpacked_to_packed_XX.cc.t
index 25a6f295f..7db6037b3 100644
--- a/gnuradio-core/src/lib/general/gr_unpacked_to_packed_XX.cc.t
+++ b/gnuradio-core/src/lib/general/gr_unpacked_to_packed_XX.cc.t
@@ -78,7 +78,7 @@ int
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
{
- unsigned int index_tmp;
+ unsigned int index_tmp = d_index;
assert (input_items.size() == output_items.size());
int nstreams = input_items.size();
diff --git a/gnuradio-core/src/lib/general/gri_agc2_cc.h b/gnuradio-core/src/lib/general/gri_agc2_cc.h
index a8ca699c5..14f42395b 100644
--- a/gnuradio-core/src/lib/general/gri_agc2_cc.h
+++ b/gnuradio-core/src/lib/general/gri_agc2_cc.h
@@ -81,8 +81,8 @@ class gri_agc2_cc {
}
protected:
- float _decay_rate; // decay rate for slow changing signals
float _attack_rate; // attack rate for fast changing signals
+ float _decay_rate; // decay rate for slow changing signals
float _reference; // reference value
float _gain; // current gain
float _max_gain; // max allowable gain