diff --git a/src-tauri/src/audio.rs b/src-tauri/src/audio.rs index 1371134f..140d24c1 100644 --- a/src-tauri/src/audio.rs +++ b/src-tauri/src/audio.rs @@ -1149,7 +1149,9 @@ impl Iterator for SizedDecoder { self.current_frame_offset = 0; break; } - Err(symphonia::core::errors::Error::DecodeError(ref _msg)) => { + Err(symphonia::core::errors::Error::DecodeError(ref msg)) => { + #[cfg(not(debug_assertions))] + let _ = msg; self.consecutive_decode_errors += 1; // Log sparingly: first drop, then every 10th to avoid spam. #[cfg(debug_assertions)]