Fixed warnings with -W.
Merge pull request #5 from dkorolev/master

Fixed warnings with -W.