1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-27 04:15:16 +00:00

fixing some gnuradio-related warnings reported by gcc, so others can be spotted easier

This commit is contained in:
Carles Fernandez
2015-12-02 18:25:06 +01:00
parent 17517625be
commit 45195917c1
51 changed files with 365 additions and 291 deletions

View File

@@ -329,8 +329,8 @@ gr_vector_void_star &output_items)
// New random data bit
current_data_bit_int_[sat] = (rand()%2) == 0 ? 1 : -1;
}
data_modulation_[sat] = current_data_bit_int_[sat] * (Galileo_E5a_I_SECONDARY_CODE.at((ms_counter_[sat]+delay_sec_[sat])%20)=='0' ? 1 : -1);
pilot_modulation_[sat] = (Galileo_E5a_Q_SECONDARY_CODE[PRN_[sat] - 1].at((ms_counter_[sat] + delay_sec_[sat]) % 100)=='0' ? 1 : -1);
data_modulation_[sat] = current_data_bit_int_[sat] * (Galileo_E5a_I_SECONDARY_CODE.at((ms_counter_[sat]+delay_sec_[sat]) % 20) == '0' ? 1 : -1);
pilot_modulation_[sat] = (Galileo_E5a_Q_SECONDARY_CODE[PRN_[sat] - 1].at((ms_counter_[sat] + delay_sec_[sat]) % 100) == '0' ? 1 : -1);
ms_counter_[sat] = ms_counter_[sat] + static_cast<int>(round(1e3*GALILEO_E5a_CODE_PERIOD));
@@ -384,6 +384,11 @@ gr_vector_void_star &output_items)
}
}
if((noutput_items == 0) || (ninput_items.size() != 0) || input_items[0] == 0)
{
// do nothing
}
// Tell runtime system how many output items we produced.
return 1;
}