Fixed internal warning of cppcheck