Skip to content

Commit

Permalink
[Ref] openmpt123: Silence warnings.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@21739 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Sep 24, 2024
1 parent aa2b509 commit 0667b97
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openmpt123/openmpt123.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class file_audio_stream : public file_audio_stream_base {
private:
std::unique_ptr<file_audio_stream_base> impl;
public:
static void show_versions( concat_stream<mpt::ustring> & log ) {
static void show_versions([[maybe_unused]] concat_stream<mpt::ustring> & log ) {
#ifdef MPT_WITH_FLAC
log << MPT_USTRING(" FLAC ") << mpt::transcode<mpt::ustring>( mpt::source_encoding, FLAC__VERSION_STRING ) << MPT_USTRING(", ") << mpt::transcode<mpt::ustring>( 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(" <https://xiph.org/flac/>") << lf;
#endif
Expand All @@ -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<mpt::ustring> & log )
file_audio_stream( const commandlineflags & flags, const mpt::native_path & filename, [[maybe_unused]] concat_stream<mpt::ustring> & log )
: impl(nullptr)
{
if ( !flags.force_overwrite ) {
Expand Down Expand Up @@ -221,7 +221,7 @@ class realtime_audio_stream : public write_buffers_interface {
private:
std::unique_ptr<write_buffers_interface> impl;
public:
static void show_versions( concat_stream<mpt::ustring> & log ) {
static void show_versions( [[maybe_unused]] concat_stream<mpt::ustring> & log ) {
#ifdef MPT_WITH_SDL2
log << MPT_USTRING(" libSDL2 ");
SDL_version sdlver;
Expand Down Expand Up @@ -264,7 +264,7 @@ class realtime_audio_stream : public write_buffers_interface {
drivers << MPT_USTRING(" allegro42") << lf;
#endif
}
static void show_devices( concat_stream<mpt::ustring> & devices, concat_stream<mpt::ustring> & log ) {
static void show_devices( concat_stream<mpt::ustring> & devices, [[maybe_unused]] concat_stream<mpt::ustring> & log ) {
devices << MPT_USTRING(" Available devices:") << lf;
devices << MPT_USTRING(" default: default") << lf;
#if defined( MPT_WITH_PULSEAUDIO )
Expand All @@ -284,7 +284,7 @@ class realtime_audio_stream : public write_buffers_interface {
#endif
}
public:
realtime_audio_stream( commandlineflags & flags, concat_stream<mpt::ustring> & log )
realtime_audio_stream( commandlineflags & flags, [[maybe_unused]] concat_stream<mpt::ustring> & log )
: impl(nullptr)
{
if constexpr ( false ) {
Expand Down

0 comments on commit 0667b97

Please sign in to comment.