Explorar o código

Fixed compiler warnings on gcc 4.6 (thanks, Volker!).

Ryan C. Gordon %!s(int64=15) %!d(string=hai) anos
pai
achega
76ffb5dde1
Modificáronse 2 ficheiros con 1 adicións e 3 borrados
  1. 0 3
      archivers/wad.c
  2. 1 0
      platform/windows.c

+ 0 - 3
archivers/wad.c

@@ -245,9 +245,6 @@ static int wad_load_entries(const char *name, int forWriting, WADinfo *info)
     PHYSFS_uint32 fileCount;
     PHYSFS_uint32 directoryOffset;
     WADentry *entry;
-    char lastDirectory[9];
-
-    lastDirectory[8] = 0; /* Make sure lastDirectory stays null-terminated. */
 
     BAIL_IF_MACRO(!wad_open(name, forWriting, &fh, &fileCount,&directoryOffset), NULL, 0);
     info->entryCount = fileCount;

+ 1 - 0
platform/windows.c

@@ -462,6 +462,7 @@ static int determineUserDir(void)
              */	
     		rc = pGetUserProfileDirectoryW(accessToken, &dummy, &psize);
             assert(!rc);  /* !!! FIXME: handle this gracefully. */
+            (void)rc;
 
             /* Allocate memory for the profile directory */
             wstr = (LPWSTR) __PHYSFS_smallAlloc(psize * sizeof (WCHAR));