Fix several unused variable warnings in the release build.

Reviewed-by: Justin M. Keyes <justinkz@gmail.com>
Reviewed-by: Eliseo Martínez <eliseomarmol@gmail.com>
This commit is contained in:
John Szakmeister
2015-04-04 19:37:33 -04:00
parent 5f3eeadd03
commit bae1e05fc8
2 changed files with 7 additions and 0 deletions

View File

@@ -2677,7 +2677,10 @@ void u_undoline(void)
void u_blockfree(buf_T *buf)
{
while (buf->b_u_oldhead != NULL) {
#ifndef NDEBUG
u_header_T *previous_oldhead = buf->b_u_oldhead;
#endif
u_freeheader(buf, buf->b_u_oldhead, NULL);
assert(buf->b_u_oldhead != previous_oldhead);
}