Resolve -Wall warnings