Remove the warning message, it's not very interesting. Also fix an unused variable.