Avoid release mode warnings.

Variables only used in asserts have been removed, their content used directly in the assert() instead.

This removes two compiler warnings.