Skip to content

Commit

Permalink
Fixed compiler warning about unused variable because assert() is awful.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 3, 2015
1 parent 1ab2afd commit 57bbcc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/physfs.c
Expand Up @@ -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);
Expand Down

0 comments on commit 57bbcc3

Please sign in to comment.