From 963b3dd91cd2204c601dc6325cc5b159e927054c Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Fri, 6 Jan 2012 14:19:59 -0500 Subject: Remove some more warnings. I'm probably being a bit OCD about these ones, but it makes the build output so much nicer... --- gr-audio/lib/alsa/audio_alsa_source.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gr-audio/lib') diff --git a/gr-audio/lib/alsa/audio_alsa_source.cc b/gr-audio/lib/alsa/audio_alsa_source.cc index 08d4996a8..a90552ff5 100644 --- a/gr-audio/lib/alsa/audio_alsa_source.cc +++ b/gr-audio/lib/alsa/audio_alsa_source.cc @@ -348,12 +348,11 @@ audio_alsa_source::work_s16_2x1 (int noutput_items, typedef gr_int16 sample_t; // the type of samples we're creating static const float scale_factor = 1.0 / std::pow(2.0f, 16-1); - unsigned int nchan = output_items.size (); float **out = (float **) &output_items[0]; sample_t *buf = (sample_t *) d_buffer; int bi; - assert (nchan == 1); + assert (output_items.size () == 1); unsigned int sizeof_frame = d_hw_nchan * sizeof (sample_t); assert (d_buffer_size_bytes == d_period_size * sizeof_frame); @@ -425,12 +424,11 @@ audio_alsa_source::work_s32_2x1 (int noutput_items, typedef gr_int32 sample_t; // the type of samples we're creating static const float scale_factor = 1.0 / std::pow(2.0f, 32-1); - unsigned int nchan = output_items.size (); float **out = (float **) &output_items[0]; sample_t *buf = (sample_t *) d_buffer; int bi; - assert (nchan == 1); + assert (output_items.size () == 1); unsigned int sizeof_frame = d_hw_nchan * sizeof (sample_t); assert (d_buffer_size_bytes == d_period_size * sizeof_frame); -- cgit