1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-08-25 07:02:22 +00:00

Some warnings removed

This commit is contained in:
Carles Fernandez 2015-02-27 14:55:46 +01:00
parent f10ba2fb1d
commit 8cd59646bb
19 changed files with 60 additions and 33 deletions

View File

@ -269,7 +269,8 @@ GalileoE1PcpsCccwsrAmbiguousAcquisition::set_state(int state)
float GalileoE1PcpsCccwsrAmbiguousAcquisition::calculate_threshold(float pfa) float GalileoE1PcpsCccwsrAmbiguousAcquisition::calculate_threshold(float pfa)
{ {
return 0.0; if(pfa){ /* Not implemented*/};
return 0.0;
} }

View File

@ -307,13 +307,15 @@ float GalileoE5aNoncoherentIQAcquisitionCaf::calculate_threshold(float pfa)
void GalileoE5aNoncoherentIQAcquisitionCaf::connect(gr::top_block_sptr top_block) void GalileoE5aNoncoherentIQAcquisitionCaf::connect(gr::top_block_sptr top_block)
{ {
// Nothing to connect internally if(top_block) { /* top_block is not null */};
// Nothing to connect internally
} }
void GalileoE5aNoncoherentIQAcquisitionCaf::disconnect(gr::top_block_sptr top_block) void GalileoE5aNoncoherentIQAcquisitionCaf::disconnect(gr::top_block_sptr top_block)
{ {
// Nothing to disconnect internally if(top_block) { /* top_block is not null */};
// Nothing to disconnect internally
} }
gr::basic_block_sptr GalileoE5aNoncoherentIQAcquisitionCaf::get_left_block() gr::basic_block_sptr GalileoE5aNoncoherentIQAcquisitionCaf::get_left_block()

View File

@ -166,7 +166,7 @@ void GpsL1CaPcpsAcquisitionFineDoppler::reset()
void GpsL1CaPcpsAcquisitionFineDoppler::connect(boost::shared_ptr<gr::top_block> top_block) void GpsL1CaPcpsAcquisitionFineDoppler::connect(boost::shared_ptr<gr::top_block> top_block)
{ {
if(top_block) { /* top_block is not null */};
//nothing to disconnect, now the tracking uses gr_sync_decimator //nothing to disconnect, now the tracking uses gr_sync_decimator
} }
@ -174,7 +174,8 @@ void GpsL1CaPcpsAcquisitionFineDoppler::connect(boost::shared_ptr<gr::top_block>
void GpsL1CaPcpsAcquisitionFineDoppler::disconnect(boost::shared_ptr<gr::top_block> top_block) void GpsL1CaPcpsAcquisitionFineDoppler::disconnect(boost::shared_ptr<gr::top_block> top_block)
{ {
//nothing to disconnect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to disconnect, now the tracking uses gr_sync_decimator
} }

View File

@ -163,15 +163,15 @@ void GpsL1CaPcpsAssistedAcquisition::reset()
void GpsL1CaPcpsAssistedAcquisition::connect(gr::top_block_sptr top_block) void GpsL1CaPcpsAssistedAcquisition::connect(gr::top_block_sptr top_block)
{ {
if(top_block) { /* top_block is not null */};
//nothing to disconnect, now the tracking uses gr_sync_decimator //nothing to disconnect, now the tracking uses gr_sync_decimator
} }
void GpsL1CaPcpsAssistedAcquisition::disconnect(gr::top_block_sptr top_block) void GpsL1CaPcpsAssistedAcquisition::disconnect(gr::top_block_sptr top_block)
{ {
//nothing to disconnect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to disconnect, now the tracking uses gr_sync_decimator
} }

View File

@ -91,14 +91,16 @@ Pass_Through::~Pass_Through()
void Pass_Through::connect(gr::top_block_sptr top_block) void Pass_Through::connect(gr::top_block_sptr top_block)
{ {
DLOG(INFO) << "nothing to connect internally"; if(top_block) { /* top_block is not null */};
DLOG(INFO) << "nothing to connect internally";
} }
void Pass_Through::disconnect(gr::top_block_sptr top_block) void Pass_Through::disconnect(gr::top_block_sptr top_block)
{ {
// Nothing to disconnect if(top_block) { /* top_block is not null */};
// Nothing to disconnect
} }

View File

@ -78,13 +78,15 @@ FileOutputFilter::~FileOutputFilter()
void FileOutputFilter::connect(gr::top_block_sptr top_block) void FileOutputFilter::connect(gr::top_block_sptr top_block)
{ {
DLOG(INFO) << "nothing to connect internally"; if(top_block) { /* top_block is not null */};
DLOG(INFO) << "nothing to connect internally";
} }
void FileOutputFilter::disconnect(gr::top_block_sptr top_block) void FileOutputFilter::disconnect(gr::top_block_sptr top_block)
{ {
// Nothing to disconnect internally if(top_block) { /* top_block is not null */};
// Nothing to disconnect internally
} }

View File

@ -76,14 +76,16 @@ NullSinkOutputFilter::~NullSinkOutputFilter()
void NullSinkOutputFilter::connect(gr::top_block_sptr top_block) void NullSinkOutputFilter::connect(gr::top_block_sptr top_block)
{ {
DLOG(INFO) << "nothing to connect internally"; if(top_block) { /* top_block is not null */};
DLOG(INFO) << "nothing to connect internally";
} }
void NullSinkOutputFilter::disconnect(gr::top_block_sptr top_block) void NullSinkOutputFilter::disconnect(gr::top_block_sptr top_block)
{ {
// Nothing to connect if(top_block) { /* top_block is not null */};
// Nothing to connect
} }

View File

@ -138,12 +138,14 @@ void GalileoE1DllPllVemlTracking::set_gnss_synchro(Gnss_Synchro* p_gnss_synchro)
void GalileoE1DllPllVemlTracking::connect(gr::top_block_sptr top_block) void GalileoE1DllPllVemlTracking::connect(gr::top_block_sptr top_block)
{ {
//nothing to connect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to connect, now the tracking uses gr_sync_decimator
} }
void GalileoE1DllPllVemlTracking::disconnect(gr::top_block_sptr top_block) void GalileoE1DllPllVemlTracking::disconnect(gr::top_block_sptr top_block)
{ {
//nothing to disconnect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to disconnect, now the tracking uses gr_sync_decimator
} }
gr::basic_block_sptr GalileoE1DllPllVemlTracking::get_left_block() gr::basic_block_sptr GalileoE1DllPllVemlTracking::get_left_block()

View File

@ -141,12 +141,14 @@ void GalileoE1TcpConnectorTracking::set_gnss_synchro(Gnss_Synchro* p_gnss_synchr
void GalileoE1TcpConnectorTracking::connect(gr::top_block_sptr top_block) void GalileoE1TcpConnectorTracking::connect(gr::top_block_sptr top_block)
{ {
//nothing to connect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to connect, now the tracking uses gr_sync_decimator
} }
void GalileoE1TcpConnectorTracking::disconnect(gr::top_block_sptr top_block) void GalileoE1TcpConnectorTracking::disconnect(gr::top_block_sptr top_block)
{ {
//nothing to disconnect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to disconnect, now the tracking uses gr_sync_decimator
} }
gr::basic_block_sptr GalileoE1TcpConnectorTracking::get_left_block() gr::basic_block_sptr GalileoE1TcpConnectorTracking::get_left_block()

View File

@ -144,12 +144,14 @@ void GalileoE5aDllPllTracking::set_gnss_synchro(Gnss_Synchro* p_gnss_synchro)
void GalileoE5aDllPllTracking::connect(gr::top_block_sptr top_block) void GalileoE5aDllPllTracking::connect(gr::top_block_sptr top_block)
{ {
//nothing to connect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to connect, now the tracking uses gr_sync_decimator
} }
void GalileoE5aDllPllTracking::disconnect(gr::top_block_sptr top_block) void GalileoE5aDllPllTracking::disconnect(gr::top_block_sptr top_block)
{ {
//nothing to disconnect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to disconnect, now the tracking uses gr_sync_decimator
} }
gr::basic_block_sptr GalileoE5aDllPllTracking::get_left_block() gr::basic_block_sptr GalileoE5aDllPllTracking::get_left_block()

View File

@ -138,12 +138,14 @@ void GalileoVolkE1DllPllVemlTracking::set_gnss_synchro(Gnss_Synchro* p_gnss_sync
void GalileoVolkE1DllPllVemlTracking::connect(gr::top_block_sptr top_block) void GalileoVolkE1DllPllVemlTracking::connect(gr::top_block_sptr top_block)
{ {
//nothing to connect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to connect, now the tracking uses gr_sync_decimator
} }
void GalileoVolkE1DllPllVemlTracking::disconnect(gr::top_block_sptr top_block) void GalileoVolkE1DllPllVemlTracking::disconnect(gr::top_block_sptr top_block)
{ {
//nothing to disconnect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to disconnect, now the tracking uses gr_sync_decimator
} }
gr::basic_block_sptr GalileoVolkE1DllPllVemlTracking::get_left_block() gr::basic_block_sptr GalileoVolkE1DllPllVemlTracking::get_left_block()

View File

@ -138,12 +138,14 @@ void GpsL1CaDllFllPllTracking::set_gnss_synchro(Gnss_Synchro* p_gnss_synchro)
void GpsL1CaDllFllPllTracking::connect(gr::top_block_sptr top_block) void GpsL1CaDllFllPllTracking::connect(gr::top_block_sptr top_block)
{ {
//nothing to connect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to connect, now the tracking uses gr_sync_decimator
} }
void GpsL1CaDllFllPllTracking::disconnect(gr::top_block_sptr top_block) void GpsL1CaDllFllPllTracking::disconnect(gr::top_block_sptr top_block)
{ {
//nothing to disconnect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to disconnect, now the tracking uses gr_sync_decimator
} }
gr::basic_block_sptr GpsL1CaDllFllPllTracking::get_left_block() gr::basic_block_sptr GpsL1CaDllFllPllTracking::get_left_block()

View File

@ -134,12 +134,14 @@ void GpsL1CaDllPllOptimTracking::set_gnss_synchro(Gnss_Synchro* p_gnss_synchro)
void GpsL1CaDllPllOptimTracking::connect(gr::top_block_sptr top_block) void GpsL1CaDllPllOptimTracking::connect(gr::top_block_sptr top_block)
{ {
//nothing to connect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to connect, now the tracking uses gr_sync_decimator
} }
void GpsL1CaDllPllOptimTracking::disconnect(gr::top_block_sptr top_block) void GpsL1CaDllPllOptimTracking::disconnect(gr::top_block_sptr top_block)
{ {
//nothing to disconnect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to disconnect, now the tracking uses gr_sync_decimator
} }
gr::basic_block_sptr GpsL1CaDllPllOptimTracking::get_left_block() gr::basic_block_sptr GpsL1CaDllPllOptimTracking::get_left_block()

View File

@ -134,12 +134,14 @@ void GpsL1CaDllPllTracking::set_gnss_synchro(Gnss_Synchro* p_gnss_synchro)
void GpsL1CaDllPllTracking::connect(gr::top_block_sptr top_block) void GpsL1CaDllPllTracking::connect(gr::top_block_sptr top_block)
{ {
//nothing to connect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to connect, now the tracking uses gr_sync_decimator
} }
void GpsL1CaDllPllTracking::disconnect(gr::top_block_sptr top_block) void GpsL1CaDllPllTracking::disconnect(gr::top_block_sptr top_block)
{ {
//nothing to disconnect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to disconnect, now the tracking uses gr_sync_decimator
} }
gr::basic_block_sptr GpsL1CaDllPllTracking::get_left_block() gr::basic_block_sptr GpsL1CaDllPllTracking::get_left_block()

View File

@ -135,12 +135,14 @@ void GpsL1CaTcpConnectorTracking::set_gnss_synchro(Gnss_Synchro* p_gnss_synchro)
void GpsL1CaTcpConnectorTracking::connect(gr::top_block_sptr top_block) void GpsL1CaTcpConnectorTracking::connect(gr::top_block_sptr top_block)
{ {
//nothing to connect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to connect, now the tracking uses gr_sync_decimator
} }
void GpsL1CaTcpConnectorTracking::disconnect(gr::top_block_sptr top_block) void GpsL1CaTcpConnectorTracking::disconnect(gr::top_block_sptr top_block)
{ {
//nothing to disconnect, now the tracking uses gr_sync_decimator if(top_block) { /* top_block is not null */};
//nothing to disconnect, now the tracking uses gr_sync_decimator
} }
gr::basic_block_sptr GpsL1CaTcpConnectorTracking::get_left_block() gr::basic_block_sptr GpsL1CaTcpConnectorTracking::get_left_block()

View File

@ -66,7 +66,7 @@ public:
void serialize(Archive& archive, const unsigned int version) void serialize(Archive& archive, const unsigned int version)
{ {
using boost::serialization::make_nvp; using boost::serialization::make_nvp;
if(version){};
archive & make_nvp("d_alpha0",d_alpha0); archive & make_nvp("d_alpha0",d_alpha0);
archive & make_nvp("d_alpha1",d_alpha1); archive & make_nvp("d_alpha1",d_alpha1);
archive & make_nvp("d_alpha2",d_alpha2); archive & make_nvp("d_alpha2",d_alpha2);

View File

@ -61,7 +61,7 @@ public:
void serialize(Archive& archive, const unsigned int version) void serialize(Archive& archive, const unsigned int version)
{ {
using boost::serialization::make_nvp; using boost::serialization::make_nvp;
if(version){};
archive & make_nvp("valid", valid); archive & make_nvp("valid", valid);
archive & make_nvp("lat", lat); archive & make_nvp("lat", lat);
archive & make_nvp("lon", lon); archive & make_nvp("lon", lon);

View File

@ -62,6 +62,7 @@ public:
void serialize(Archive& archive, const unsigned int version) void serialize(Archive& archive, const unsigned int version)
{ {
using boost::serialization::make_nvp; using boost::serialization::make_nvp;
if(version){};
archive & make_nvp("valid", valid); archive & make_nvp("valid", valid);
archive & make_nvp("d_TOW", d_TOW); archive & make_nvp("d_TOW", d_TOW);
archive & make_nvp("d_Week", d_Week); archive & make_nvp("d_Week", d_Week);

View File

@ -68,7 +68,7 @@ public:
void serialize(Archive& archive, const unsigned int version) void serialize(Archive& archive, const unsigned int version)
{ {
using boost::serialization::make_nvp; using boost::serialization::make_nvp;
if(version){};
archive & make_nvp("valid",valid); archive & make_nvp("valid",valid);
archive & make_nvp("d_A1",d_A1); archive & make_nvp("d_A1",d_A1);
archive & make_nvp("d_A0",d_A0); archive & make_nvp("d_A0",d_A0);