Merge pull request #3138 from thiagotalma/inspections

Correction of many warnings code inspection.