[flac-dev] Lets work towards a new version

Martijn van Beurden mvanb1 at gmail.com
Fri Jun 27 01:00:18 PDT 2014


op 27-06-14 00:03, lvqcl schreef:
> Martijn van Beurden wrote:
>
>> Like I reported just before the release of 1.3.0 (mail of Fri,
>> 05 Apr 2013 08:25:10 +0200, to be specific), compiling on
>> Raspbian (Debian Wheezy, GCC 4.6) returns quite some warnings of
>> the type -Wcast-align.
> What happens if you change the definitions of s8buffer[] and ucbuffer_[]
> arrays as follows:
>
> static __attribute__((__aligned__(4))) FLAC__int8 s8buffer[FLAC__MAX_BLOCK_SIZE * FLAC__MAX_CHANNELS * sizeof(FLAC__int32)];
>
> static __attribute__((__aligned__(4))) unsigned char ucbuffer_[CHUNK_OF_SAMPLES*FLAC__MAX_CHANNELS*((FLAC__REFERENCE_CODEC_MAX_BITS_PER_SAMPLE+7)/8)];

There seems to be no difference: the same warnings pop up during 
compiling and the resulting binary still passes the testsuite. I 
haven't checked for any speed differences.


More information about the flac-dev mailing list