[flac-dev] Lets work towards a new version

lvqcl lvqcl.mail at gmail.com
Thu Jun 26 15:03:10 PDT 2014


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)];

?


More information about the flac-dev mailing list