mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
document GCC compiler bug that produces false warning
This commit is contained in:
@@ -782,6 +782,7 @@ bool stream_decoder_read_frame_(FLAC__StreamDecoder *decoder, bool *got_a_frame)
|
||||
decoder->guts->samples_decoded += decoder->guts->frame.header.blocksize;
|
||||
|
||||
/* write it */
|
||||
/* NOTE: some versions of GCC can't figure out const-ness right and will give you an 'incompatible pointer type' warning on arg 3 here: */
|
||||
if(decoder->guts->write_callback(decoder, &decoder->guts->frame, decoder->guts->output, decoder->guts->client_data) != FLAC__STREAM_DECODER_WRITE_CONTINUE)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user