• Fiona Glaser's avatar
    Fix all aliasing violations · 03cb8c09
    Fiona Glaser authored
    New type-punning macros perform write/read-combining without aliasing violations per the second-to-last part of 6.5.7 in the C99 specification.
    GCC 4.4, however, doesn't seem to have read this part of the spec and still warns about the violations.
    Regardless, it seems to fix all known aliasing miscompilations, so perhaps the GCC warning generator is just broken.
    As such, add -Wno-strict-aliasing to CFLAGS.
common.h 23.6 KB