Displaying 3 results from an estimated 3 matches for "decode_options".
2007 Sep 08
2
Compile problems on OSX
...LAC__HAS_OGG is 0
in src/flac/decode.c:
decode.c:393: error: 'options' undeclared (first use in this function)
The code in question is this:
#if FLAC__HAS_OGG
if(decoder_session->is_ogg) {
/* Some code here. */
}
else
#else
(void)decode_options;
#endif
{
/* More code. */
}
The problem here is that conditional compiles can hide bugs. The code above
re-written to turn a conditional compile into an always compiled if statement
which will trigger the error regardless of the value of FLAC__HAS_OGG:
if...
2007 Sep 09
2
Compile problems on OSX
...his
> > function)
> >
> > The code in question is this:
> >
> > #if FLAC__HAS_OGG
> > if(decoder_session->is_ogg) {
> > /* Some code here. */
> > }
> > else
> > #else
> > (void)decode_options;
> > #endif
> > {
> > /* More code. */
> > }
>
> yes, this is fixed in cvs. actually I'll probably be doing a
> release soon and I'd be interested to know if the latest stuff
> works for you.
Sorry, I just updated from C...
2007 Sep 09
0
Compile problems on OSX
...93: error: 'options' undeclared (first use in this
> function)
>
> The code in question is this:
>
> #if FLAC__HAS_OGG
> if(decoder_session->is_ogg) {
> /* Some code here. */
> }
> else
> #else
> (void)decode_options;
> #endif
> {
> /* More code. */
> }
yes, this is fixed in cvs. actually I'll probably be doing a
release soon and I'd be interested to know if the latest stuff
works for you.
> The problem here is that conditional compiles can hide bugs. Th...