Fixed compiler warning about unused variable because assert() is awful.

This commit is contained in:
Ryan C. Gordon 2015-07-02 23:36:33 -04:00
parent 1ab2afda15
commit 57bbcc3eb3
1 changed files with 2 additions and 2 deletions

View File

@ -1273,8 +1273,8 @@ static void freeArchivers(void)
{
while (numArchivers > 0)
{
const int rc = doDeregisterArchiver(numArchivers - 1);
assert(rc); /* nothing should be mounted during shutdown. */
if (!doDeregisterArchiver(numArchivers - 1))
assert(!"nothing should be mounted during shutdown.");
} /* while */
allocator.Free(archivers);