Commit a8234229 authored by Raphael Defosseux's avatar Raphael Defosseux

changed back some cppcheck "fixes" and updated the cppcheck suppression list

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent f4bf32d7
...@@ -67,6 +67,15 @@ syntaxError:openair1/SIMULATION/LTE_PHY/dlsim_tm4.c ...@@ -67,6 +67,15 @@ syntaxError:openair1/SIMULATION/LTE_PHY/dlsim_tm4.c
// omg, otg commented out in cmakelist to be cleaned up definitely? // omg, otg commented out in cmakelist to be cleaned up definitely?
arrayIndexOutOfBounds:openair2/UTIL/OMG/omg.c arrayIndexOutOfBounds:openair2/UTIL/OMG/omg.c
uninitvar:openair2/UTIL/OTG/otg_rx_socket.c uninitvar:openair2/UTIL/OTG/otg_rx_socket.c
//-----------------------------------------------------------------------------
// cppcheck is not able to understand that buf is initialized at the first
// iteration of the loop.
nullPointer:common/utils/T/local_tracer.c:243
//-----------------------------------------------------------------------------
// once again cppcheck is not to understand that fds is initialized in the
// first iteration of the loop
nullPointer:common/utils/T/tracer/multi.c:264
nullPointer:common/utils/T/tracer/multi.c:265
// //
//***************************************************************************** //*****************************************************************************
// //
......
...@@ -240,7 +240,6 @@ again: ...@@ -240,7 +240,6 @@ again:
if (len <= 0) goto dead; if (len <= 0) goto dead;
if (buf != NULL)
PUT(t); PUT(t);
switch (t) { switch (t) {
......
...@@ -261,7 +261,6 @@ int main(int n, char **v) ...@@ -261,7 +261,6 @@ int main(int n, char **v)
if (fds == NULL) { perror("calloc"); exit(1); } if (fds == NULL) { perror("calloc"); exit(1); }
} }
i = 0; i = 0;
if (fds == NULL) { perror("null fds pointer"); exit(1); }
fds[i].fd = l; fds[i].fd = l;
fds[i].events = POLLIN; fds[i].events = POLLIN;
i++; i++;
......
...@@ -195,9 +195,7 @@ int main(int n, char **v) ...@@ -195,9 +195,7 @@ int main(int n, char **v)
handle_event(h, e); handle_event(h, e);
} }
if (on_off_name != NULL)
free(on_off_name); free(on_off_name);
if (on_off_action != NULL)
free(on_off_action); free(on_off_action);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment