fixed warning [-Wempty-body]
Merge pull request #2078 from ilya-lavrenov:warn