fix warnings identified by CI
This commit is contained in:
@@ -339,7 +339,9 @@ extern "C" {
|
|||||||
int itti_create_queue(const task_info_t *taskInfo) {
|
int itti_create_queue(const task_info_t *taskInfo) {
|
||||||
pthread_mutex_lock (&lock_nb_queues);
|
pthread_mutex_lock (&lock_nb_queues);
|
||||||
int newQueue=nb_queues++;
|
int newQueue=nb_queues++;
|
||||||
AssertFatal(tasks=(task_list_t **) realloc(tasks, nb_queues * sizeof(*tasks)),"");
|
task_list_t **new_tasks = (task_list_t **)realloc(tasks, nb_queues * sizeof(*tasks));
|
||||||
|
AssertFatal(new_tasks != NULL, "could not realloc() tasks list");
|
||||||
|
tasks = new_tasks;
|
||||||
tasks[newQueue]= new task_list_t;
|
tasks[newQueue]= new task_list_t;
|
||||||
pthread_mutex_unlock (&lock_nb_queues);
|
pthread_mutex_unlock (&lock_nb_queues);
|
||||||
LOG_I(TMR,"Starting itti queue: %s as task %d\n", taskInfo->name, newQueue);
|
LOG_I(TMR,"Starting itti queue: %s as task %d\n", taskInfo->name, newQueue);
|
||||||
|
|||||||
@@ -874,7 +874,7 @@ void init_gNB_proc(int inst) {
|
|||||||
gNB->threadPool = (tpool_t*)malloc(sizeof(tpool_t));
|
gNB->threadPool = (tpool_t*)malloc(sizeof(tpool_t));
|
||||||
gNB->respDecode = (notifiedFIFO_t*) malloc(sizeof(notifiedFIFO_t));
|
gNB->respDecode = (notifiedFIFO_t*) malloc(sizeof(notifiedFIFO_t));
|
||||||
int numCPU = sysconf(_SC_NPROCESSORS_ONLN);
|
int numCPU = sysconf(_SC_NPROCESSORS_ONLN);
|
||||||
uint32_t num_threads_pusch;
|
uint32_t num_threads_pusch = 1;
|
||||||
paramdef_t PUSCHThreads[] = NUM_THREADS_DESC;
|
paramdef_t PUSCHThreads[] = NUM_THREADS_DESC;
|
||||||
config_get( PUSCHThreads,sizeof(PUSCHThreads)/sizeof(paramdef_t),NULL);
|
config_get( PUSCHThreads,sizeof(PUSCHThreads)/sizeof(paramdef_t),NULL);
|
||||||
int threadCnt = min(numCPU, num_threads_pusch);
|
int threadCnt = min(numCPU, num_threads_pusch);
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
*/
|
*/
|
||||||
#define _LARGEFILE_SOURCE
|
#define _LARGEFILE_SOURCE
|
||||||
#define _FILE_OFFSET_BITS 64
|
#define _FILE_OFFSET_BITS 64
|
||||||
#define NB_ANTENNAS_RX 2
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user