diff --git a/openmpt123/openmpt123.cpp b/openmpt123/openmpt123.cpp index 7a19f36dc9..8c32ce5817 100644 --- a/openmpt123/openmpt123.cpp +++ b/openmpt123/openmpt123.cpp @@ -2188,7 +2188,6 @@ static mpt::uint8 main( std::vector args ) { FILE_mode_guard stdout_text_guard( stdout, FILE_mode::text ); FILE_mode_guard stderr_text_guard( stderr, FILE_mode::text ); - textout_dummy dummy_log; textout_wrapper std_out; textout_wrapper std_err; @@ -2281,6 +2280,7 @@ static mpt::uint8 main( std::vector args ) { [[maybe_unused]] std::optional input_guard{ stdin_text && ( flags.mode == Mode::UI ) ? std::make_optional() : std::nullopt }; // choose text output between quiet/stdout/stderr + textout_dummy dummy_log; textout & log = flags.quiet ? static_cast( dummy_log ) : stdout_text ? static_cast( std_out ) : static_cast( std_err ); show_banner( log, flags.banner );