1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 20:20:35 +00:00

Fix warning in GCC 10

This commit is contained in:
Carles Fernandez 2020-05-28 23:05:09 +02:00
parent 9b15992556
commit 447d8a5625
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -81,7 +81,8 @@ TEST(Protobuf, Works)
// We can access like this: // We can access like this:
std::vector<Gnss_Synchro> vgs_read = serdes.readProtobuffer(obs); std::vector<Gnss_Synchro> vgs_read = serdes.readProtobuffer(obs);
Gnss_Synchro gs_read = vgs_read[0]; Gnss_Synchro gs_read{};
gs_read = vgs_read[0];
uint32_t prn_read = gs_read.PRN; uint32_t prn_read = gs_read.PRN;
uint32_t prn_read2 = vgs_read[1].PRN; uint32_t prn_read2 = vgs_read[1].PRN;
std::string system_read(1, gs_read.System); std::string system_read(1, gs_read.System);