fixed warnings
Merge pull request #1942 from ilya-lavrenov:warn_fix