Fxed some cpp_check warnings

6 jobs for cpp_check_warnings in 86 minutes and 30 seconds