From 1c357ef06282b292847d8d2a6f062a5f11a8ac30 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Mon, 30 Jan 2017 00:09:48 +0100 Subject: [PATCH] Fix gcc warnings --- src/tests/system-tests/obs_gps_l1_system_test.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/tests/system-tests/obs_gps_l1_system_test.cc b/src/tests/system-tests/obs_gps_l1_system_test.cc index c2e95de80..15f2a6ad9 100644 --- a/src/tests/system-tests/obs_gps_l1_system_test.cc +++ b/src/tests/system-tests/obs_gps_l1_system_test.cc @@ -162,7 +162,7 @@ int Obs_Gps_L1_System_Test::generate_signal() } wait_result = waitpid(pid, &child_status, 0); - + if (wait_result == -1) perror("waitpid error"); EXPECT_EQ(true, check_valid_rinex_obs(filename_rinex_obs)); std::cout << "Signal and Observables RINEX files created." << std::endl; return 0; @@ -173,9 +173,7 @@ int Obs_Gps_L1_System_Test::configure_receiver() { config = std::make_shared(); - const double central_freq = 1575420000.0; const int sampling_rate_internal = baseband_sampling_freq; - const double gain_dB = 40.0; const int number_of_taps = 11; const int number_of_bands = 2; @@ -210,14 +208,12 @@ int Obs_Gps_L1_System_Test::configure_receiver() const float early_late_space_chips = 0.5; const float pll_bw_narrow_hz = 20.0; const float dll_bw_narrow_hz = 2.0; - const int extend_correlation_ms = 1; + const int extend_correlation_ms = 10; const int display_rate_ms = 500; const int output_rate_ms = 1000; const int averaging_depth = 10; - bool false_bool = false; - config->set_property("GNSS-SDR.internal_fs_hz", std::to_string(sampling_rate_internal)); // Set the assistance system parameters @@ -361,7 +357,7 @@ int Obs_Gps_L1_System_Test::run_receiver() std::cout << "Failed to run command: " << argum2 << std::endl; return -1; } - char * without_trailing; + char * without_trailing = (char*)"0"; while (fgets(buffer, sizeof(buffer), fp) != NULL) { std::string aux = std::string(buffer);