Fixed compiler warning about unused variable because assert() is awful.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 02 Jul 2015 23:36:33 -0400
changeset 1363 a3dabf75a0d0
parent 1362 10eeee30148a
child 1364 61d312843192
Fixed compiler warning about unused variable because assert() is awful.
src/physfs.c
--- a/src/physfs.c	Thu Jun 18 00:12:15 2015 -0400
+++ b/src/physfs.c	Thu Jul 02 23:36:33 2015 -0400
@@ -1273,8 +1273,8 @@
 {
     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);