diff --git a/openmpt123/openmpt123.cpp b/openmpt123/openmpt123.cpp index 58a7c05ec7d..7e81f839d78 100644 --- a/openmpt123/openmpt123.cpp +++ b/openmpt123/openmpt123.cpp @@ -157,7 +157,7 @@ class file_audio_stream : public file_audio_stream_base { private: std::unique_ptr impl; public: - static void show_versions( concat_stream & log ) { + static void show_versions([[maybe_unused]] concat_stream & log ) { #ifdef MPT_WITH_FLAC log << MPT_USTRING(" FLAC ") << mpt::transcode( mpt::source_encoding, FLAC__VERSION_STRING ) << MPT_USTRING(", ") << mpt::transcode( mpt::source_encoding, FLAC__VENDOR_STRING ) << MPT_USTRING(", API ") << FLAC_API_VERSION_CURRENT << MPT_USTRING(".") << FLAC_API_VERSION_REVISION << MPT_USTRING(".") << FLAC_API_VERSION_AGE << MPT_USTRING(" ") << lf; #endif @@ -170,7 +170,7 @@ class file_audio_stream : public file_audio_stream_base { #endif } public: - file_audio_stream( const commandlineflags & flags, const mpt::native_path & filename, concat_stream & log ) + file_audio_stream( const commandlineflags & flags, const mpt::native_path & filename, [[maybe_unused]] concat_stream & log ) : impl(nullptr) { if ( !flags.force_overwrite ) { @@ -221,7 +221,7 @@ class realtime_audio_stream : public write_buffers_interface { private: std::unique_ptr impl; public: - static void show_versions( concat_stream & log ) { + static void show_versions( [[maybe_unused]] concat_stream & log ) { #ifdef MPT_WITH_SDL2 log << MPT_USTRING(" libSDL2 "); SDL_version sdlver; @@ -264,7 +264,7 @@ class realtime_audio_stream : public write_buffers_interface { drivers << MPT_USTRING(" allegro42") << lf; #endif } - static void show_devices( concat_stream & devices, concat_stream & log ) { + static void show_devices( concat_stream & devices, [[maybe_unused]] concat_stream & log ) { devices << MPT_USTRING(" Available devices:") << lf; devices << MPT_USTRING(" default: default") << lf; #if defined( MPT_WITH_PULSEAUDIO ) @@ -284,7 +284,7 @@ class realtime_audio_stream : public write_buffers_interface { #endif } public: - realtime_audio_stream( commandlineflags & flags, concat_stream & log ) + realtime_audio_stream( commandlineflags & flags, [[maybe_unused]] concat_stream & log ) : impl(nullptr) { if constexpr ( false ) {