gcc problem with new kde build

Andrew Pinski pinskia@physics.uc.edu
Wed Sep 3 18:15:00 GMT 2003


> There doesn't appear to be anything wrong with the c code at the line 
> in question (715)
> void DeviceManager::seqbuf_clean(void)
> {
> #ifdef HAVE_ALSA_SUPPORT
>   if (alsa)
>     ((AlsaOut *)device[default_dev])->seqbuf_clean();
>   else
> #endif
> #ifdef HAVE_OSS_SUPPORT
>     _seqbufptr=0;
> #endif
> }  <---- line 715

Actually if HAVE_ALSA_SUPPORT is defined and HAVE_OSS_SUPPORT is not
(which looks like what is happening with you), you get:
void DeviceManager::seqbuf_clean(void)
{
   if (alsa)
     ((AlsaOut *)device[default_dev])->seqbuf_clean();
   else
}
so the code is messed up, report it to the KDE guys.

I think a better way of doing this is:
> void DeviceManager::seqbuf_clean(void)
> {
> #ifdef HAVE_ALSA_SUPPORT
>   if (alsa)
>       {
>        ((AlsaOut *)device[default_dev])->seqbuf_clean();
>          return;
>       }
> #endif
> #ifdef HAVE_OSS_SUPPORT
>     _seqbufptr=0;
> #endif
> }  <---- line 715


Thanks,
Andrew Pinski



More information about the Gcc mailing list