From 78bf1f875c3b9fd7586f7e3cddd7ea2d5eb32466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 14 Jan 2026 11:30:11 +0100 Subject: [PATCH] Fix GCC -Wshadow warning --- RtAudio.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RtAudio.cpp b/RtAudio.cpp index b7dc15a9..075c1976 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -9538,14 +9538,14 @@ bool RtApiPulse::probeDeviceOpen( unsigned int deviceId, StreamMode mode, if ( stream_.doConvertBuffer[mode] ) setConvertInfo( mode, firstChannel ); if ( !stream_.apiHandle ) { - PulseAudioHandle *pah = new PulseAudioHandle; - if ( !pah ) { + PulseAudioHandle *pah2 = new PulseAudioHandle; + if ( !pah2 ) { errorText_ = "RtApiPulse::probeDeviceOpen: error allocating memory for handle."; goto error; } - stream_.apiHandle = pah; - if ( pthread_cond_init( &pah->runnable_cv, NULL ) != 0 ) { + stream_.apiHandle = pah2; + if ( pthread_cond_init( &pah2->runnable_cv, NULL ) != 0 ) { errorText_ = "RtApiPulse::probeDeviceOpen: error creating condition variable."; goto error; }