* Fix some new GCC 4.3 warnings

* Fix many many strict aliasing warnings, now that it's re-enabled
This commit is contained in:
Tim Angus committed 2008-11-10 23:55:22 +00:00
1 parent 7c19978aaa
commit 72dea0a184
19 files changed
+220 -152

No files matched your search

+4 -2
View File
@@ -1109,7 +1109,8 @@ static int unzlocal_getShort (FILE* fin, uLong *pX)
{
short v;
fread( &v, sizeof(v), 1, fin );
size_t size;
size = fread( &v, sizeof(v), 1, fin );
*pX = LittleShort( v);
return UNZ_OK;
@@ -1138,7 +1139,8 @@ static int unzlocal_getLong (FILE *fin, uLong *pX)
{
int v;
fread( &v, sizeof(v), 1, fin );
size_t size;
size = fread( &v, sizeof(v), 1, fin );
*pX = LittleLong( v);
return UNZ_OK;