Fixed -Wextra errors