[flac-dev] Fixed first cast-align warning

Erik de Castro Lopo mle+la at mega-nerd.com
Fri Jun 27 05:11:26 PDT 2014

Hi all,

I fixed the first cast-align warning in this commit:

  commit 40e817dc526d1d41e900bb0f54d1a4451bda01ed
  Author: Erik de Castro Lopo <erikd at mega-nerd.com>
  Date:   Fri Jun 27 21:58:26 2014 +1000

    src/flac/decode.c : Fix a cast-align warning from GCC.
    The old code was creating an array of FLAC__int8, and then casting
    that to a set of signed and unsigned 16 and 32 bit integers. This
    was replaced with a single union containing all the requred array.
    This solution means that there are fewer pointer casts and actually
    gives the compiler more information with which to generate fast code.

There has been at least one person on this list who is able to do
perfromance tests on FLAC. I would appreciate it if someone could
run such a performance test before and after the above commit.

Erik de Castro Lopo

More information about the flac-dev mailing list