Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Black
OpenXG-RAN
Commits
15905c74
Commit
15905c74
authored
Mar 01, 2021
by
Melissa Elkadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing cppcheck issues
parent
8988d8ef
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
4 deletions
+10
-4
common/utils/LOG/log.c
common/utils/LOG/log.c
+1
-1
common/utils/T/T.h
common/utils/T/T.h
+1
-1
common/utils/ocp_itti/intertask_interface.cpp
common/utils/ocp_itti/intertask_interface.cpp
+1
-0
nfapi/open-nFAPI/pnf/src/pnf_p7_interface.c
nfapi/open-nFAPI/pnf/src/pnf_p7_interface.c
+1
-0
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
+3
-0
openair1/PHY/TOOLS/nr_phy_scope.c
openair1/PHY/TOOLS/nr_phy_scope.c
+1
-1
openair1/SCHED_UE/phy_procedures_lte_ue.c
openair1/SCHED_UE/phy_procedures_lte_ue.c
+1
-0
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_udp.c
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_udp.c
+1
-1
No files found.
common/utils/LOG/log.c
View file @
15905c74
...
...
@@ -246,7 +246,7 @@ int write_file_matlab(const char *fname,
fprintf
(
fp
,
"%d
\n
"
,((
unsigned
char
*
)
&
data
)[
0
]);
break
;
default:
AssertFatal
(
false
,
"unknown dump format: %
d
\n
"
,
format
);
AssertFatal
(
false
,
"unknown dump format: %
u
\n
"
,
format
);
}
if
(
format
!=
10
&&
format
!=
11
&&
format
!=
12
&&
format
!=
13
&&
format
!=
15
)
{
...
...
common/utils/T/T.h
View file @
15905c74
#ifndef _T_T_T_
#define _T_T_T_
#if T_TRACER
#if T_TRACER
&& !defined(__cppcheck__)
#include <stdint.h>
...
...
common/utils/ocp_itti/intertask_interface.cpp
View file @
15905c74
...
...
@@ -339,6 +339,7 @@ extern "C" {
int
itti_create_queue
(
const
task_info_t
*
taskInfo
)
{
pthread_mutex_lock
(
&
lock_nb_queues
);
int
newQueue
=
nb_queues
++
;
// cppcheck-suppress memleakOnRealloc
AssertFatal
(
tasks
=
(
task_list_t
**
)
realloc
(
tasks
,
nb_queues
*
sizeof
(
*
tasks
)),
""
);
tasks
[
newQueue
]
=
new
task_list_t
;
pthread_mutex_unlock
(
&
lock_nb_queues
);
...
...
nfapi/open-nFAPI/pnf/src/pnf_p7_interface.c
View file @
15905c74
...
...
@@ -44,6 +44,7 @@ nfapi_pnf_p7_config_t* nfapi_pnf_p7_config_create()
_this
->
_public
.
codec_config
.
allocate
=
&
malloc
;
_this
->
_public
.
codec_config
.
deallocate
=
&
free
;
// cppcheck-suppress memleak
return
&
(
_this
->
_public
);
}
...
...
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
View file @
15905c74
...
...
@@ -2923,6 +2923,9 @@ int allocate_REs_in_RB_MCH_khz_1dot25(int32_t **txdataF,
uint8_t
skip_dc
,
LTE_DL_FRAME_PARMS
*
frame_parms
)
{
if
(
!
qam_table_s
)
abort
();
uint32_t
tti_offset
;
uint8_t
re
,
offset
;
uint8_t
qam64_table_offset_re
=
0
;
...
...
openair1/PHY/TOOLS/nr_phy_scope.c
View file @
15905c74
...
...
@@ -242,7 +242,7 @@ static void genericWaterFall (OAIgraph_t *graph, scopeSample_t *values, const in
for
(
int
pix
=
0
;
pix
<
graph
->
w
;
pix
++
)
{
scopeSample_t
*
end
=
values
+
(
pix
+
1
)
*
samplesPerPixel
;
end
-=
2
;
AssertFatal
(
end
<=
values
+
datasize
,
"diff : %
ld
"
,
end
-
values
+
datasize
);
AssertFatal
(
end
<=
values
+
datasize
,
"diff : %
tu
"
,
end
-
values
+
datasize
);
double
val
=
0
;
for
(
scopeSample_t
*
s
=
values
+
(
pix
)
*
samplesPerPixel
;
...
...
openair1/SCHED_UE/phy_procedures_lte_ue.c
View file @
15905c74
...
...
@@ -3686,6 +3686,7 @@ void *UE_thread_slot1_dl_processing(void *arg) {
if
(
(
proc
->
sub_frame_start
+
1
)
%
RX_NB_TH
==
1
&&
threads
.
slot1_proc_two
!=
-
1
)
CPU_SET
(
threads
.
slot1_proc_two
,
&
cpuset
);
// cppcheck-suppress moduloAlwaysTrueFalse
if
(
(
proc
->
sub_frame_start
+
1
)
%
RX_NB_TH
==
2
&&
threads
.
slot1_proc_three
!=
-
1
)
CPU_SET
(
threads
.
slot1_proc_three
,
&
cpuset
);
...
...
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_udp.c
View file @
15905c74
...
...
@@ -414,7 +414,7 @@ int trx_eth_read_udp(openair0_device *device, openair0_timestamp *timestamp, voi
char
*
temp_rx0
=
((
char
*
)
&
temp_rx
[
1
])
-
APP_HEADER_SIZE_BYTES
;
#endif
#elif defined(__arm__) || defined(__aarch64__)
int
nsamps2
=
(
payload_size
>>
4
)
+
1
int
nsamps2
=
(
payload_size
>>
4
)
+
1
;
int16x8_t
temp_rx
[
nsamps2
];
char
*
temp_rx0
=
((
char
*
)
&
temp_rx
[
1
])
-
APP_HEADER_SIZE_BYTES
;
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment