1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-11-14 05:44:56 +00:00

Added variable initializations that remove warnings when compiling in release mode [-Wuninitialized]

git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@224 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
Carles Fernandez 2012-08-04 08:14:51 +00:00
parent eeb006a1ec
commit f2551edcd7
4 changed files with 15 additions and 16 deletions

View File

@ -43,8 +43,7 @@
#include "gnss_sdr_valve.h"
#include "fir_filter.h"
DEFINE_string(filter_test_output_filename, "../src/tests/data/fir_filter_test_output.dat", "Dump filename")
;
DEFINE_string(filter_test_output_filename, "../src/tests/data/fir_filter_test_output.dat", "Dump filename");
class Fir_Filter_Test: public ::testing::Test {
protected:
@ -105,8 +104,8 @@ TEST_F(Fir_Filter_Test, ConnectAndRun)
int fs_in = 8000000;
int nsamples = 10000000;
struct timeval tv;
long long int begin;
long long int end;
long long int begin = 0;
long long int end = 0;
init();

View File

@ -152,8 +152,8 @@ TEST_F(GalileoE1PcpsAmbiguousAcquisitionGSoCTest, ConnectAndRun)
int fs_in = 4000000;
int nsamples = 4*fs_in;
struct timeval tv;
long long int begin;
long long int end;
long long int begin = 0;
long long int end = 0;
init();
GalileoE1PcpsAmbiguousAcquisition *acquisition = new GalileoE1PcpsAmbiguousAcquisition(config, "Acquisition", 1, 1, queue);
@ -184,8 +184,8 @@ TEST_F(GalileoE1PcpsAmbiguousAcquisitionGSoCTest, ConnectAndRun)
TEST_F(GalileoE1PcpsAmbiguousAcquisitionGSoCTest, ValidationOfResults)
{
struct timeval tv;
long long int begin;
long long int end;
long long int begin = 0;
long long int end = 0;
init();
GalileoE1PcpsAmbiguousAcquisition *acquisition = new GalileoE1PcpsAmbiguousAcquisition(config, "Acquisition", 1, 1, queue);

View File

@ -142,8 +142,8 @@ TEST_F(GalileoE1PcpsAmbiguousAcquisitionTest, ConnectAndRun)
int fs_in = 4000000;
int nsamples = 4*fs_in;
struct timeval tv;
long long int begin;
long long int end;
long long int begin = 0;
long long int end = 0;
init();
GalileoE1PcpsAmbiguousAcquisition *acquisition = new GalileoE1PcpsAmbiguousAcquisition(config, "Acquisition", 1, 1, queue);
@ -174,8 +174,8 @@ TEST_F(GalileoE1PcpsAmbiguousAcquisitionTest, ConnectAndRun)
TEST_F(GalileoE1PcpsAmbiguousAcquisitionTest, ValidationOfResults)
{
struct timeval tv;
long long int begin;
long long int end;
long long int begin = 0;
long long int end = 0;
double expected_delay_samples = 2920; //18250;
double expected_doppler_hz = 632;
init();

View File

@ -141,8 +141,8 @@ TEST_F(GpsL1CaPcpsAcquisitionTest, ConnectAndRun)
int fs_in = 4000000;
int nsamples = 4000;
struct timeval tv;
long long int begin;
long long int end;
long long int begin = 0;
long long int end = 0;
init();
GpsL1CaPcpsAcquisition *acquisition = new GpsL1CaPcpsAcquisition(config, "Acquisition", 1, 1, queue);
@ -173,8 +173,8 @@ TEST_F(GpsL1CaPcpsAcquisitionTest, ConnectAndRun)
TEST_F(GpsL1CaPcpsAcquisitionTest, ValidationOfResults)
{
struct timeval tv;
long long int begin;
long long int end;
long long int begin = 0;
long long int end = 0;
double expected_delay_samples = 524;
double expected_doppler_hz = -1680;
init();