fixed compiler warnings, removed unused log variables 2
Merge pull request #338 from jonasman/master

fixed compiler warnings, removed unused log variables 2