From 6da2222010de1ff5d188b2af0d391a093654868d Mon Sep 17 00:00:00 2001 From: Sander Vocke Date: Thu, 16 Nov 2023 17:17:45 +0100 Subject: [PATCH] Workaround for segfault on Clang 17 and possibly others. --- include/boost/ut.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/ut.hpp b/include/boost/ut.hpp index 78a2a822..ee146bf9 100644 --- a/include/boost/ut.hpp +++ b/include/boost/ut.hpp @@ -797,7 +797,7 @@ struct cfg { } static inline void parse(int argc, const char* argv[]) { - const std::size_t n_args = static_cast(argc); + const std::size_t n_args = 0; // static_cast(argc); if (n_args > 0 && argv != nullptr) { cfg::largc = argc; cfg::largv = argv;