Fix build warnings in phy simulators
This commit is contained in:
@@ -114,16 +114,16 @@ int main(int argc, char **argv)
|
|||||||
//int run_initial_sync=0;
|
//int run_initial_sync=0;
|
||||||
int loglvl = OAILOG_WARNING;
|
int loglvl = OAILOG_WARNING;
|
||||||
uint8_t dlsch_threads = 0;
|
uint8_t dlsch_threads = 0;
|
||||||
float target_error_rate = 0.01;
|
float target_error_rate = 0.01;
|
||||||
uint64_t SSB_positions=0x01;
|
uint64_t SSB_positions=0x01;
|
||||||
uint16_t nb_symb_sch = 12;
|
uint16_t nb_symb_sch = 12;
|
||||||
uint16_t nb_rb = 50;
|
uint16_t nb_rb = 50;
|
||||||
uint8_t Imcs = 9;
|
uint8_t Imcs = 9;
|
||||||
uint8_t mcs_table = 0;
|
uint8_t mcs_table = 0;
|
||||||
double DS_TDL = .03;
|
double DS_TDL = .03;
|
||||||
cpuf = get_cpu_freq_GHz();
|
cpuf = get_cpu_freq_GHz();
|
||||||
char gNBthreads[128]="n";
|
char gNBthreads[128]="n";
|
||||||
int Tbslbrm = 950984;
|
int Tbslbrm = 950984;
|
||||||
|
|
||||||
if (load_configmodule(argc, argv, CONFIG_ENABLECMDLINEONLY) == 0) {
|
if (load_configmodule(argc, argv, CONFIG_ENABLECMDLINEONLY) == 0) {
|
||||||
exit_fun("[NR_DLSCHSIM] Error, configuration module init failed\n");
|
exit_fun("[NR_DLSCHSIM] Error, configuration module init failed\n");
|
||||||
@@ -299,7 +299,7 @@ int main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'X':
|
case 'X':
|
||||||
strncpy(gNBthreads, optarg, sizeof(gNBthreads));
|
strncpy(gNBthreads, optarg, sizeof(gNBthreads)-1);
|
||||||
gNBthreads[sizeof(gNBthreads)-1]=0;
|
gNBthreads[sizeof(gNBthreads)-1]=0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -670,7 +670,7 @@ int main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'X':
|
case 'X':
|
||||||
strncpy(gNBthreads, optarg, sizeof(gNBthreads));
|
strncpy(gNBthreads, optarg, sizeof(gNBthreads)-1);
|
||||||
gNBthreads[sizeof(gNBthreads)-1]=0;
|
gNBthreads[sizeof(gNBthreads)-1]=0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user