Skip to content

Commit

Permalink
Fixed compiler warnings on gcc 4.6 (thanks, Volker!).
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 31, 2011
1 parent e7b6906 commit 76ffb5d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions archivers/wad.c
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions platform/windows.c
Expand Up @@ -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));
Expand Down

0 comments on commit 76ffb5d

Please sign in to comment.