Explorar o código

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

Ryan C. Gordon %!s(int64=10) %!d(string=hai) anos
pai
achega
57bbcc3eb3
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/physfs.c

+ 2 - 2
src/physfs.c

@@ -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);