This avoids warnings in NDEBUG builds emitted when a variable is only used in log_assert, but is always defined.