COMP: Fix error issues of cppcheck on ANTS