HOPKINS: Fix several Cppcheck warning