* Silence warnings for unused parameters / variables
* There's no reason to output unexpected exceptions only for libc++
Differential Revision: https://reviews.llvm.org/
D141453
std::cerr << "\nFormat string " << fmt << "\nExpected exception " << what << "\nActual exception "
<< e.what() << '\n';
assert(e.what() == what);
+# else
+ (void)what;
+ (void)e;
# endif
return;
}
std::basic_string_view<CharT>{fmt}, std::make_format_args<format_context<CharT>>(arg));
#ifndef TEST_HAS_NO_EXCEPTIONS
} catch (const std::format_error& e) {
-# if defined(_LIBCPP_VERSION)
+ (void)e;
if constexpr (std::same_as<CharT, char>)
std::cerr << "\nFormat string " << fmt << "\nUnexpected exception " << e.what() << '\n';
-# endif
assert(false);
}
#endif