diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2011-03-27 13:49:26 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2011-03-27 13:49:26 (GMT) |
commit | 039b291ac0508c881d63303c4b22eebbd55e7e3d (patch) | |
tree | b1e29600f8e82b719111b28a3357063012a8d69a /src/physfs-1-fix-gcc46-warnings.patch | |
parent | 80ea9c0737c306adc432e97c8784bf55910c0d4a (diff) | |
download | mxe-039b291ac0508c881d63303c4b22eebbd55e7e3d.zip mxe-039b291ac0508c881d63303c4b22eebbd55e7e3d.tar.gz mxe-039b291ac0508c881d63303c4b22eebbd55e7e3d.tar.bz2 |
fix compiler errors instead of suppressing them
Diffstat (limited to 'src/physfs-1-fix-gcc46-warnings.patch')
-rw-r--r-- | src/physfs-1-fix-gcc46-warnings.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/physfs-1-fix-gcc46-warnings.patch b/src/physfs-1-fix-gcc46-warnings.patch new file mode 100644 index 0000000..adf92b7 --- /dev/null +++ b/src/physfs-1-fix-gcc46-warnings.patch @@ -0,0 +1,30 @@ +This file is part of mingw-cross-env. +See doc/index.html for further information. + +This patch has been taken from: +http://icculus.org/pipermail/physfs/2011-March/000990.html + +diff -ru physfs-2.0.2.orig/archivers/wad.c physfs-2.0.2/archivers/wad.c +--- physfs-2.0.2.orig/archivers/wad.c 2011-02-18 22:17:31.000000000 +0100 ++++ physfs-2.0.2/archivers/wad.c 2011-03-27 14:55:10.000000000 +0200 +@@ -245,9 +245,6 @@ + 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; +diff -ru physfs-2.0.2.orig/platform/windows.c physfs-2.0.2/platform/windows.c +--- physfs-2.0.2.orig/platform/windows.c 2011-02-18 22:17:31.000000000 +0100 ++++ physfs-2.0.2/platform/windows.c 2011-03-27 14:54:17.000000000 +0200 +@@ -462,6 +462,7 @@ + */ + 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)); |