Fix some sizeof and switch-case errors reported by CodeChecker

CodeChecker is a python application that collects reports from static analyzers like
clang-tidy, clangsa, cppcheck.
This commit is contained in:
Bartosz Podrygajlo
2024-10-07 09:35:24 +02:00
parent d8a6c5c9d5
commit 01066a3f0d
10 changed files with 14 additions and 19 deletions
+1 -1
View File
@@ -463,7 +463,7 @@ int main(int argc, char **argv)
s_im = malloc(n_tx*sizeof(double*));
r_re = malloc(n_rx*sizeof(double*));
r_im = malloc(n_rx*sizeof(double*));
memcpy((void*)&gNB->frame_parms,(void*)frame_parms,sizeof(frame_parms));
memcpy((void *)&gNB->frame_parms, (void *)frame_parms, sizeof(*frame_parms));
for (int aatx=0; aatx<n_tx; aatx++) {
s_re[aatx] = calloc(1,frame_length_complex_samples*sizeof(double));
s_im[aatx] = calloc(1,frame_length_complex_samples*sizeof(double));