Fixed deprecation warnings and unused variable warnings.
Merge branch 'hotfix/compilation_warnings' into develop
Merge branch 'hotfix/compilation_warnings'
Merge branch 'develop'