From 2af4de174f6696bf48ab3350ddd9c00797e6bdc9 Mon Sep 17 00:00:00 2001 From: Be Date: Mon, 19 Feb 2024 17:34:18 -0600 Subject: [PATCH] SoundSourceMP3: fix unused function warning --- src/sources/soundsourcemp3.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sources/soundsourcemp3.cpp b/src/sources/soundsourcemp3.cpp index ea6d228065e5..e67e30933efb 100644 --- a/src/sources/soundsourcemp3.cpp +++ b/src/sources/soundsourcemp3.cpp @@ -109,7 +109,9 @@ inline bool isUnrecoverableError(mad_error error) { return (MAD_ERROR_NONE != error) && !MAD_RECOVERABLE(error); } -inline bool hasUnrecoverableError(const mad_stream* pMadStream) { +[[maybe_unused]] // only used in DEBUG_ASSERT +inline bool +hasUnrecoverableError(const mad_stream* pMadStream) { if (pMadStream) { return isUnrecoverableError(pMadStream->error); }