diff options
-rw-r--r-- | gr-dtv/lib/dvb/dvb_bbheader_bb_impl.cc | 2 | ||||
-rw-r--r-- | gr-dtv/lib/dvb/dvb_bbscrambler_bb_impl.cc | 3 | ||||
-rw-r--r-- | gr-dtv/lib/dvb/dvb_bch_bb_impl.cc | 2 | ||||
-rw-r--r-- | gr-dtv/lib/dvb/dvb_ldpc_bb_impl.cc | 8 | ||||
-rw-r--r-- | gr-dtv/lib/dvbs2/dvbs2_modulator_bc_impl.cc | 1 | ||||
-rw-r--r-- | gr-dtv/lib/dvbs2/dvbs2_physical_cc_impl.cc | 1 | ||||
-rw-r--r-- | gr-dtv/lib/dvbt2/dvbt2_freqinterleaver_cc_impl.cc | 2 | ||||
-rw-r--r-- | gr-dtv/lib/dvbt2/dvbt2_modulator_bc_impl.cc | 2 | ||||
-rw-r--r-- | gr-utils/python/modtool/gr-newmod/CMakeLists.txt | 17 |
9 files changed, 29 insertions, 9 deletions
diff --git a/gr-dtv/lib/dvb/dvb_bbheader_bb_impl.cc b/gr-dtv/lib/dvb/dvb_bbheader_bb_impl.cc index d14b46a0e1..123e7fb15e 100644 --- a/gr-dtv/lib/dvb/dvb_bbheader_bb_impl.cc +++ b/gr-dtv/lib/dvb/dvb_bbheader_bb_impl.cc @@ -326,7 +326,7 @@ namespace gr { void dvb_bbheader_bb_impl::build_crc8_table(void) { - int r,crc; + int r, crc; for (int i = 0; i < 256; i++) { r = i; diff --git a/gr-dtv/lib/dvb/dvb_bbscrambler_bb_impl.cc b/gr-dtv/lib/dvb/dvb_bbscrambler_bb_impl.cc index ef1c1841ad..8e86eb4f64 100644 --- a/gr-dtv/lib/dvb/dvb_bbscrambler_bb_impl.cc +++ b/gr-dtv/lib/dvb/dvb_bbscrambler_bb_impl.cc @@ -279,8 +279,7 @@ namespace gr { unsigned char *out = (unsigned char *) output_items[0]; for (int i = 0; i < noutput_items; i += kbch) { - for (int j = 0; j < (int)kbch; ++j) - { + for (int j = 0; j < (int)kbch; ++j) { out[i + j] = in[i + j] ^ bb_randomise[j]; } } diff --git a/gr-dtv/lib/dvb/dvb_bch_bb_impl.cc b/gr-dtv/lib/dvb/dvb_bch_bb_impl.cc index b1ebb6db79..8d89f9b04a 100644 --- a/gr-dtv/lib/dvb/dvb_bch_bb_impl.cc +++ b/gr-dtv/lib/dvb/dvb_bch_bb_impl.cc @@ -385,7 +385,7 @@ namespace gr { void dvb_bch_bb_impl::forecast (int noutput_items, gr_vector_int &ninput_items_required) { - ninput_items_required[0] = (noutput_items / nbch) * kbch; + ninput_items_required[0] = (noutput_items / nbch) * kbch; } /* diff --git a/gr-dtv/lib/dvb/dvb_ldpc_bb_impl.cc b/gr-dtv/lib/dvb/dvb_ldpc_bb_impl.cc index 568aac940a..84328e1200 100644 --- a/gr-dtv/lib/dvb/dvb_ldpc_bb_impl.cc +++ b/gr-dtv/lib/dvb/dvb_ldpc_bb_impl.cc @@ -369,12 +369,12 @@ namespace gr { void dvb_ldpc_bb_impl::forecast (int noutput_items, gr_vector_int &ninput_items_required) { - ninput_items_required[0] = (noutput_items / frame_size) * nbch; + ninput_items_required[0] = (noutput_items / frame_size) * nbch; } #define LDPC_BF(TABLE_NAME, ROWS) \ for (int row = 0; row < ROWS; row++) { \ - for(int n = 0; n < 360; n++) { \ + for (int n = 0; n < 360; n++) { \ for (int col = 1; col <= TABLE_NAME[row][0]; col++) { \ ldpc_encode.p[index] = (TABLE_NAME[row][col] + (n * q)) % pbits; \ ldpc_encode.d[index] = im; \ @@ -606,7 +606,7 @@ for (int row = 0; row < ROWS; row++) { \ unsigned char *out = (unsigned char *) output_items[0]; const unsigned char *d; unsigned char *p; - unsigned char *b; + unsigned char *b = (unsigned char *) output_items[0]; unsigned char *s; // Calculate the number of parity bits int plen = (frame_size_real + Xp) - nbch; @@ -657,7 +657,7 @@ for (int row = 0; row < ROWS; row++) { \ p[j] ^= p[j-1]; } if (signal_constellation == MOD_128APSK) { - for(int j = 0; j < 6; j++) { + for (int j = 0; j < 6; j++) { p[j + plen] = 0; } } diff --git a/gr-dtv/lib/dvbs2/dvbs2_modulator_bc_impl.cc b/gr-dtv/lib/dvbs2/dvbs2_modulator_bc_impl.cc index 3ae1debb01..e3fb039c50 100644 --- a/gr-dtv/lib/dvbs2/dvbs2_modulator_bc_impl.cc +++ b/gr-dtv/lib/dvbs2/dvbs2_modulator_bc_impl.cc @@ -53,6 +53,7 @@ namespace gr { m_bpsk[0][1] = gr_complex((r1 * cos(5.0 * M_PI / 4.0)), (r1 * sin(5.0 * M_PI / 4.0))); m_bpsk[1][0] = gr_complex((r1 * cos(5.0 * M_PI / 4.0)), (r1 * sin(M_PI / 4.0))); m_bpsk[1][1] = gr_complex((r1 * cos(M_PI / 4.0)), (r1 * sin(5.0 * M_PI /4.0))); + break; case MOD_QPSK: m_qpsk[0] = gr_complex((r1 * cos(M_PI / 4.0)), (r1 * sin(M_PI / 4.0))); m_qpsk[1] = gr_complex((r1 * cos(7 * M_PI / 4.0)), (r1 * sin(7 * M_PI / 4.0))); diff --git a/gr-dtv/lib/dvbs2/dvbs2_physical_cc_impl.cc b/gr-dtv/lib/dvbs2/dvbs2_physical_cc_impl.cc index 688ad7a40c..5da18b1d21 100644 --- a/gr-dtv/lib/dvbs2/dvbs2_physical_cc_impl.cc +++ b/gr-dtv/lib/dvbs2/dvbs2_physical_cc_impl.cc @@ -71,6 +71,7 @@ namespace gr { } else { frame_size = FRAME_SIZE_MEDIUM - MEDIUM_PUNCTURING + EXTRA_PILOT_SYMBOLS_SET1; + type = 0; pilots = PILOTS_ON; /* force pilots on for VL-SNR */ } diff --git a/gr-dtv/lib/dvbt2/dvbt2_freqinterleaver_cc_impl.cc b/gr-dtv/lib/dvbt2/dvbt2_freqinterleaver_cc_impl.cc index f89d2af7f7..bda49e9540 100644 --- a/gr-dtv/lib/dvbt2/dvbt2_freqinterleaver_cc_impl.cc +++ b/gr-dtv/lib/dvbt2/dvbt2_freqinterleaver_cc_impl.cc @@ -186,6 +186,8 @@ namespace gr { max_states = 0; logic = &logic1k[0]; xor_size = 0; + bitpermeven = &bitperm1keven[0]; + bitpermodd = &bitperm1kodd[0]; break; } switch (fftsize) { diff --git a/gr-dtv/lib/dvbt2/dvbt2_modulator_bc_impl.cc b/gr-dtv/lib/dvbt2/dvbt2_modulator_bc_impl.cc index 28e7c4fac2..b92738603b 100644 --- a/gr-dtv/lib/dvbt2/dvbt2_modulator_bc_impl.cc +++ b/gr-dtv/lib/dvbt2/dvbt2_modulator_bc_impl.cc @@ -500,7 +500,7 @@ namespace gr { void dvbt2_modulator_bc_impl::forecast (int noutput_items, gr_vector_int &ninput_items_required) { - ninput_items_required[0] = noutput_items; + ninput_items_required[0] = noutput_items; } int diff --git a/gr-utils/python/modtool/gr-newmod/CMakeLists.txt b/gr-utils/python/modtool/gr-newmod/CMakeLists.txt index bde9dc0c0f..3f316a78b4 100644 --- a/gr-utils/python/modtool/gr-newmod/CMakeLists.txt +++ b/gr-utils/python/modtool/gr-newmod/CMakeLists.txt @@ -46,6 +46,23 @@ set(VERSION_INFO_API_COMPAT 0) set(VERSION_INFO_MINOR_VERSION 0) set(VERSION_INFO_MAINT_VERSION git) +# Set cmake policies. +# This will suppress developer warnings during the cmake process that can occur +# if a newer cmake version than the minimum is used. + +if(POLICY CMP0026) + cmake_policy(SET CMP0026 OLD) +endif() +if(POLICY CMP0043) + cmake_policy(SET CMP0043 OLD) +endif() +if(POLICY CMP0045) + cmake_policy(SET CMP0045 OLD) +endif() +if(POLICY CMP0046) + cmake_policy(SET CMP0046 OLD) +endif() + ######################################################################## # Compiler specific setup ######################################################################## |