From: aknudsen Date: Tue, 25 Mar 2008 20:21:35 +0000 (+0000) Subject: Avoid warnings about unused labels X-Git-Tag: svn/1415~35 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=bc1b5d028cc4bedaac28bc10e0554865c0ebd418;p=portaudio Avoid warnings about unused labels --- diff --git a/src/hostapi/oss/pa_unix_oss.c b/src/hostapi/oss/pa_unix_oss.c index 9da42d0..74068d8 100644 --- a/src/hostapi/oss/pa_unix_oss.c +++ b/src/hostapi/oss/pa_unix_oss.c @@ -1507,7 +1507,6 @@ static PaError PaOssStream_Stop( PaOssStream *stream, int abort ) result = paUnanticipatedHostError; } -error: return result; } @@ -1979,7 +1978,10 @@ static signed long GetStreamWriteAvailable( PaStream* s ) #endif return (PaOssStreamComponent_BufferSize( stream->playback ) - delay) / PaOssStreamComponent_FrameSize( stream->playback ); +/* Conditionally compile this to avoid warning about unused label */ +#ifdef SNDCTL_DSP_GETODELAY error: return result; +#endif }