summaryrefslogtreecommitdiff
path: root/gr-cvsd-vocoder/src
diff options
context:
space:
mode:
authorjcorgan2008-08-24 17:41:07 +0000
committerjcorgan2008-08-24 17:41:07 +0000
commit34af4364456b9005efee3c3986ea0f4dce87c99e (patch)
tree06dc2b36e42a00985364f043748f9ab1881bde0b /gr-cvsd-vocoder/src
parent66a225bf721cd61c736879bdf8ab44674319426d (diff)
downloadgnuradio-34af4364456b9005efee3c3986ea0f4dce87c99e.tar.gz
gnuradio-34af4364456b9005efee3c3986ea0f4dce87c99e.tar.bz2
gnuradio-34af4364456b9005efee3c3986ea0f4dce87c99e.zip
Fix compiler warnings across the tree. Adds --enable-warnings-as-errors configure option. Currently compiles with no warnings with GCC 4.2.3 on Ubuntu 8.04.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9396 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-cvsd-vocoder/src')
-rw-r--r--gr-cvsd-vocoder/src/lib/Makefile.am2
-rw-r--r--gr-cvsd-vocoder/src/lib/cvsd_decode_bs.cc4
-rw-r--r--gr-cvsd-vocoder/src/lib/cvsd_encode_sb.cc4
3 files changed, 2 insertions, 8 deletions
diff --git a/gr-cvsd-vocoder/src/lib/Makefile.am b/gr-cvsd-vocoder/src/lib/Makefile.am
index 402a10eed..c4f1fac39 100644
--- a/gr-cvsd-vocoder/src/lib/Makefile.am
+++ b/gr-cvsd-vocoder/src/lib/Makefile.am
@@ -73,6 +73,8 @@ _cvsd_vocoder_la_LIBADD = \
$(GNURADIO_CORE_LA) \
-lstdc++
+_cvsd_vocoder_la_CXXFLAGS = @swig_CXXFLAGS@
+
cvsd_vocoder.cc cvsd_vocoder.py: cvsd_vocoder.i $(ALL_IFILES)
$(SWIG) $(SWIGPYTHONARGS) -module cvsd_vocoder -o cvsd_vocoder.cc $(LOCAL_IFILES)
diff --git a/gr-cvsd-vocoder/src/lib/cvsd_decode_bs.cc b/gr-cvsd-vocoder/src/lib/cvsd_decode_bs.cc
index 6b44c57e5..1dad15d43 100644
--- a/gr-cvsd-vocoder/src/lib/cvsd_decode_bs.cc
+++ b/gr-cvsd-vocoder/src/lib/cvsd_decode_bs.cc
@@ -64,12 +64,8 @@ cvsd_decode_bs::cvsd_decode_bs (short min_step, short max_step, double step_deca
d_stepsize(min_step)
{
- assert(d_pos_accum_max <= SHRT_MAX);
- assert(d_neg_accum_max >= -SHRT_MAX);
assert(d_K <= 32);
assert(d_J <= d_K);
-
- // nothing else required in this example
}
diff --git a/gr-cvsd-vocoder/src/lib/cvsd_encode_sb.cc b/gr-cvsd-vocoder/src/lib/cvsd_encode_sb.cc
index c2d13d19b..561b91c68 100644
--- a/gr-cvsd-vocoder/src/lib/cvsd_encode_sb.cc
+++ b/gr-cvsd-vocoder/src/lib/cvsd_encode_sb.cc
@@ -63,12 +63,8 @@ cvsd_encode_sb::cvsd_encode_sb (short min_step, short max_step, double step_deca
d_stepsize(min_step)
{
- assert(d_pos_accum_max <= SHRT_MAX);
- assert(d_neg_accum_max >= -SHRT_MAX);
assert(d_K <= 32);
assert(d_J <= d_K);
-
- // nothing else required in this example
}