From 359b70960f8e2d9c5288914fe6370b836d0a8167 Mon Sep 17 00:00:00 2001 From: eb Date: Tue, 24 Oct 2006 22:03:38 +0000 Subject: made warnings go away git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3852 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/lib/general/gr_log2_const.h | 2 +- gnuradio-core/src/lib/general/gr_packed_to_unpacked_XX.cc.t | 2 +- gnuradio-core/src/lib/general/gr_unpacked_to_packed_XX.cc.t | 2 +- gnuradio-core/src/lib/general/gri_agc2_cc.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'gnuradio-core') 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 -template static inline int gr_log2_const() { assert(0); } +template 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 -- cgit