Fix minor build warnings in build of HitAnalysis package See merge request !4623 Former-commit-id: 615955db