Skip to content

Commit

Permalink
Fix [[nodiscard]] error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryouze committed Oct 5, 2024
1 parent 6ad2504 commit 13ec2cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_all.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ int main(int argc,
{
#if defined(_WIN32)
// Setup UTF-8 input/output on Windows (does nothing on other platforms)
core::io::setup_utf8_console();
if (const auto e = core::io::setup_utf8_console(); e.has_value()) {
fmt::print(stderr, "Warning: {}\n", *e);
}
#endif

// Define the formatted help message
Expand Down

0 comments on commit 13ec2cd

Please sign in to comment.