change unused variable to warning instead of error