[physfs] FTBFS with gcc 4.4

Patrick Matthäi pmatthaei at debian.org
Wed May 6 05:28:13 EDT 2009


Ryan C. Gordon schrieb:
> 
>>> /build/tbm/libphysfs-2.0.0/archivers/zip.c:432: error: dereferencing
>> type-punned pointer will break strict-aliasing rules
> 
> Fixed in 971:845a258ba28e for the 2.0-stable branch, and 
> 996:0410dc655d45 for the 2.1 development branch, thanks!

It still fails with gcc 4.4:

 > Automatic build of libphysfs_2.0.0-3 on em64t by sbuild/amd64 0.53
...
 > [ 29%] Building C object CMakeFiles/physfs.dir/archivers/zip.o
 > cc1: warnings being treated as errors
 > /build/tbm/libphysfs-2.0.0/archivers/zip.c: In function 
'zip_find_end_of_central_dir':
 > /build/tbm/libphysfs-2.0.0/archivers/zip.c:378: error: 'extra[0u]' 
may be used uninitialized in this function
 > /build/tbm/libphysfs-2.0.0/archivers/zip.c:378: error: 'extra[1u]' 
may be used uninitialized in this function
 > /build/tbm/libphysfs-2.0.0/archivers/zip.c:378: error: 'extra[2u]' 
may be used uninitialized in this function
 > /build/tbm/libphysfs-2.0.0/archivers/zip.c:378: error: 'extra[3u]' 
may be used uninitialized in this function
 > make[3]: *** [CMakeFiles/physfs.dir/archivers/zip.o] Error 1
 > make[3]: Leaving directory `/build/tbm/libphysfs-2.0.0'
 > make[2]: *** [CMakeFiles/physfs.dir/all] Error 2





More information about the physfs mailing list