aboutsummaryrefslogtreecommitdiffstats
path: root/testing/physfs/silence-gcc.patch
blob: d4318f6f48bb4a0d8a943056a92b1501172629e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
commit e64432ac6dde3bf6943d8fc929241d57a961a673
Author: Isaac Dunham <ibid.ag@gmail.com>
Date:   Tue Nov 18 10:26:22 2014 -0800

    shut up gcc: data_start is stored to, not used

diff --git a/archivers/zip.c b/archivers/zip.c
index 0e65453..611198d 100644
--- a/archivers/zip.c
+++ b/archivers/zip.c
@@ -1113,7 +1113,7 @@ static void *ZIP_openArchive(const char *name, int forWriting)
 {
     void *in = NULL;
     ZIPinfo *info = NULL;
-    PHYSFS_uint32 data_start;
+    PHYSFS_uint32 data_start = data_start;
     PHYSFS_uint32 cent_dir_ofs;
 
     BAIL_IF_MACRO(forWriting, ERR_ARC_IS_READ_ONLY, NULL);