1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +00:00

Fix warning in Clang 10

This commit is contained in:
Carles Fernandez 2020-05-30 00:44:37 +02:00
parent 447d8a5625
commit 3ca193fd9b
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -320,8 +320,9 @@ int gps_l1_ca_telemetry_decoder_gs::general_work(int noutput_items __attribute__
auto **out = reinterpret_cast<Gnss_Synchro **>(&output_items[0]); // Get the output buffer pointer
const auto **in = reinterpret_cast<const Gnss_Synchro **>(&input_items[0]); // Get the input buffer pointer
Gnss_Synchro current_symbol{};
// 1. Copy the current tracking output
Gnss_Synchro current_symbol = in[0][0];
current_symbol = in[0][0];
// add new symbol to the symbol queue
d_symbol_history.push_back(current_symbol.Prompt_I);
d_sample_counter++; // count for the processed symbols