From bc1b5d028cc4bedaac28bc10e0554865c0ebd418 Mon Sep 17 00:00:00 2001 From: aknudsen Date: Tue, 25 Mar 2008 20:21:35 +0000 Subject: [PATCH] Avoid warnings about unused labels --- src/hostapi/oss/pa_unix_oss.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- 2.43.0