Fixed compiler warnings on gcc 4.6 (thanks, Volker!).
This commit is contained in:
parent
e7b69065a2
commit
76ffb5dde1
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue