Browse Source

fix a warning from watcom compiler

physfs.c(321): Warning! W302: Expression is only useful for its side effects
Ozkan Sezer 2 years ago
parent
commit
7931b9b3f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/physfs.c

+ 1 - 1
src/physfs.c

@@ -318,7 +318,7 @@ static PHYSFS_Io *memoryIo_duplicate(PHYSFS_Io *io)
         BAIL(PHYSFS_ERR_OUT_OF_MEMORY, NULL);
         BAIL(PHYSFS_ERR_OUT_OF_MEMORY, NULL);
     } /* if */
     } /* if */
 
 
-    __PHYSFS_ATOMIC_INCR(&info->refcount);
+    (void) __PHYSFS_ATOMIC_INCR(&info->refcount);
 
 
     memset(newinfo, '\0', sizeof (*info));
     memset(newinfo, '\0', sizeof (*info));
     newinfo->buf = info->buf;
     newinfo->buf = info->buf;