From 2cf3ecd159154e6da1f691549746803600f98146 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 20 Jul 2011 11:21:17 +0200 Subject: [PATCH] physfs: added patch to make this build with gcc46. --- .../patches/gcc46-unused-but-set-variable.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 srcpkgs/physfs/patches/gcc46-unused-but-set-variable.patch diff --git a/srcpkgs/physfs/patches/gcc46-unused-but-set-variable.patch b/srcpkgs/physfs/patches/gcc46-unused-but-set-variable.patch new file mode 100644 index 0000000000..3a681a20f6 --- /dev/null +++ b/srcpkgs/physfs/patches/gcc46-unused-but-set-variable.patch @@ -0,0 +1,12 @@ +--- archivers/wad.c.orig 2011-07-20 11:19:01.409198964 +0200 ++++ archivers/wad.c 2011-07-20 11:19:31.465196724 +0200 +@@ -245,9 +245,6 @@ static int wad_load_entries(const char * + 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;