1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-13 19:50:34 +00:00

Fix warning Wstringop-overread raised by GCC 11

This commit is contained in:
Carles Fernandez 2021-01-28 13:56:30 +01:00
parent da2bc8d406
commit c5916d05c3
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
5 changed files with 5 additions and 6 deletions

View File

@ -29,7 +29,7 @@ Pvt_Conf::Pvt_Conf()
max_obs_block_rx_clock_offset_ms = 40;
rinex_version = 0;
rinexobs_rate_ms = 0;
rinex_name = "-";
rinex_name = std::string("-");
dump = false;
dump_mat = true;

View File

@ -44,10 +44,9 @@ Acq_Conf::Acq_Conf()
dump = false;
blocking = true;
make_2_steps = false;
dump_filename = "";
dump_channel = 0U;
it_size = sizeof(gr_complex);
item_type = "gr_complex";
item_type = std::string("gr_complex");
blocking_on_standby = false;
use_automatic_resampler = false;
resampler_ratio = 1.0;

View File

@ -20,7 +20,7 @@
Obs_Conf::Obs_Conf()
{
dump_filename = "obs_dump.dat";
dump_filename = std::string("obs_dump.dat");
smoothing_factor = FLAGS_carrier_smoothing_factor;
nchannels_in = 0;
nchannels_out = 0;

View File

@ -69,7 +69,7 @@ Dll_Pll_Conf::Dll_Pll_Conf()
signal[0] = '1';
signal[1] = 'C';
signal[2] = '\0';
item_type = "gr_complex";
item_type = std::string("gr_complex");
}

View File

@ -71,7 +71,7 @@ Dll_Pll_Conf_Fpga::Dll_Pll_Conf_Fpga()
signal[0] = '1';
signal[1] = 'C';
signal[2] = '\0';
device_name = "/dev/uio";
device_name = std::string("/dev/uio");
code_length_chips = 0U;
code_samples_per_chip = 0U;
ca_codes = nullptr;