Fixed warnings about unused retval in asserts.