Fix warnings reported by code inspection.