فهرست منبع

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

Ryan C. Gordon 10 سال پیش
والد
کامیت
57bbcc3eb3
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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);