From 13ec2cd3fc36fa53a7e89700dd59625b4a888f84 Mon Sep 17 00:00:00 2001 From: ryouze <98982999+ryouze@users.noreply.github.com> Date: Sat, 5 Oct 2024 17:44:04 +0200 Subject: [PATCH] Fix [[nodiscard]] error. --- tests/test_all.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_all.cpp b/tests/test_all.cpp index 784f620..b14e087 100644 --- a/tests/test_all.cpp +++ b/tests/test_all.cpp @@ -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