Is the assert still useful? If it is, I would use a void expression here to silence the warning.