From 3bc6ce4f758bd24390d0712877e932a43a8e2783 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 5 May 2018 12:50:00 +0200 Subject: [PATCH] Fix warnings --- src/core/receiver/gnss_flowgraph.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/receiver/gnss_flowgraph.cc b/src/core/receiver/gnss_flowgraph.cc index c12c126ae..28fd703c9 100644 --- a/src/core/receiver/gnss_flowgraph.cc +++ b/src/core/receiver/gnss_flowgraph.cc @@ -335,7 +335,7 @@ void GNSSFlowgraph::connect() } #endif // Signal conditioner (selected_signal_source) >> channels (i) (dependent of their associated SignalSource_ID) - int selected_signal_conditioner_ID; + int selected_signal_conditioner_ID = 0; for (unsigned int i = 0; i < channels_count_; i++) { if (FPGA_enabled == false) @@ -538,9 +538,8 @@ void GNSSFlowgraph::disconnect() } } - bool FPGA_enabled = configuration_->property(sig_source_.at(0)->role() + ".enable_FPGA", false); - #if ENABLE_FPGA + bool FPGA_enabled = configuration_->property(sig_source_.at(0)->role() + ".enable_FPGA", false); if (FPGA_enabled == false) { // disconnect the signal source to sample counter