fixed compiler warnings, removed unused log variables 2

sorry, didn't see this file last time