Skip to content

Commit

Permalink
SoundSourceMP3: fix unused function warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed Feb 19, 2024
1 parent 0d4fb5f commit 2af4de1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sources/soundsourcemp3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2af4de1

Please sign in to comment.