[hamradio-commits] [gnss-sdr] 249/303: Fix gcc warnings

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Mon Feb 13 22:36:05 UTC 2017


This is an automated email from the git hooks/post-receive script.

carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.

commit 1c357ef06282b292847d8d2a6f062a5f11a8ac30
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date:   Mon Jan 30 00:09:48 2017 +0100

    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 c2e95de..15f2a6a 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<InMemoryConfiguration>();
 
-    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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git



More information about the pkg-hamradio-commits mailing list