summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/general
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r--gnuradio-core/src/lib/general/gr_iqcomp_cc.cc5
-rw-r--r--gnuradio-core/src/lib/general/gr_ofdm_qam_mapper.cc4
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_mux.cc2
-rw-r--r--gnuradio-core/src/lib/general/gri_fft.cc2
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_firdes.cc2
5 files changed, 10 insertions, 5 deletions
diff --git a/gnuradio-core/src/lib/general/gr_iqcomp_cc.cc b/gnuradio-core/src/lib/general/gr_iqcomp_cc.cc
index 19b81392e..e0a2c08ae 100644
--- a/gnuradio-core/src/lib/general/gr_iqcomp_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_iqcomp_cc.cc
@@ -40,7 +40,8 @@ gr_iqcomp_cc::gr_iqcomp_cc (float mu)
gr_make_io_signature (1, 1, sizeof (gr_complex))),
d_mu (mu)
{
- float d_wi=0.0, d_wq=0.0;
+ d_wi=0.0;
+ d_wq=0.0;
}
int
@@ -49,7 +50,7 @@ gr_iqcomp_cc::work (int noutput_items,
gr_vector_void_star &output_items)
{
const gr_complex *iptr = (gr_complex *) input_items[0];
- gr_complex *optr = (gr_complex *) output_items[0];
+ // gr_complex *optr = (gr_complex *) output_items[0];
for(int i = 0 ; i < noutput_items ; i++) {
float i_out = iptr[i].real() - iptr[i].imag() * d_wq;
diff --git a/gnuradio-core/src/lib/general/gr_ofdm_qam_mapper.cc b/gnuradio-core/src/lib/general/gr_ofdm_qam_mapper.cc
index 433b3bc31..0f974069e 100644
--- a/gnuradio-core/src/lib/general/gr_ofdm_qam_mapper.cc
+++ b/gnuradio-core/src/lib/general/gr_ofdm_qam_mapper.cc
@@ -151,18 +151,20 @@ void gr_ofdm_qam_mapper::make_constellation()
d_constellation_map[15] = gr_complex(3, 3);
coeff = sqrt(31.0)/2.0;
- for(i = 0; i < d_constellation_map.size(); i++) {
+ for(i = 0; i < static_cast<int>(d_constellation_map.size()); i++) {
d_constellation_map[i] /= coeff;
printf("const[%d]: %f + j%f\n", i, d_constellation_map[i].real(), d_constellation_map[i].imag());
}
}
+#if 0
static float
randombit()
{
int r = rand()&1;
return (float)(-1 + 2*r);
}
+#endif
int
gr_ofdm_qam_mapper::work(int noutput_items,
diff --git a/gnuradio-core/src/lib/general/gr_stream_mux.cc b/gnuradio-core/src/lib/general/gr_stream_mux.cc
index 8ba138471..e56974c50 100644
--- a/gnuradio-core/src/lib/general/gr_stream_mux.cc
+++ b/gnuradio-core/src/lib/general/gr_stream_mux.cc
@@ -86,7 +86,7 @@ gr_stream_mux::general_work(int noutput_items,
if(VERBOSE) {
printf("mux: nouput_items: %d d_stream: %d\n", noutput_items, d_stream);
for(size_t i = 0; i < d_lengths.size(); i++)
- printf("\tninput_items[%d]: %d\n", i, ninput_items[i]);
+ printf("\tninput_items[%zu]: %d\n", i, ninput_items[i]);
}
while (1) {
diff --git a/gnuradio-core/src/lib/general/gri_fft.cc b/gnuradio-core/src/lib/general/gri_fft.cc
index f6e28e1d1..509420d8a 100644
--- a/gnuradio-core/src/lib/general/gri_fft.cc
+++ b/gnuradio-core/src/lib/general/gri_fft.cc
@@ -37,7 +37,7 @@ static boost::mutex s_planning_mutex;
static char *
wisdom_filename ()
{
- static char *filename = ".gr_fftw_wisdom";
+ static const char *filename = ".gr_fftw_wisdom";
char *home = getenv ("HOME");
if (home){
diff --git a/gnuradio-core/src/lib/general/qa_gr_firdes.cc b/gnuradio-core/src/lib/general/qa_gr_firdes.cc
index 5a41f118a..771249b2c 100644
--- a/gnuradio-core/src/lib/general/qa_gr_firdes.cc
+++ b/gnuradio-core/src/lib/general/qa_gr_firdes.cc
@@ -33,6 +33,7 @@
using std::vector;
+#if 0
static void
print_taps (std::ostream &s, vector<float> &v)
{
@@ -41,6 +42,7 @@ print_taps (std::ostream &s, vector<float> &v)
printf ("tap[%2d] = %16.7e\n", i, v[i]);
}
}
+#endif
static void
check_symmetry (vector<float> &v)