HOPKINS: Fix some warnings reported by CppCheck