From 105011a53b7454f9d819c4bb4978fa03ad565bb2 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 13 May 2026 12:05:13 +0200 Subject: [PATCH] Zero array for for MSVC --- kernel/io.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/io.h b/kernel/io.h index 171f47a80..96b5bb55d 100644 --- a/kernel/io.h +++ b/kernel/io.h @@ -441,7 +441,8 @@ public: private: std::string_view fmt; bool has_escapes = false; - FoundFormatSpec specs[sizeof...(Args)] = {}; + // Making array at least size of one to make MSVC happy and strict to standards + FoundFormatSpec specs[sizeof...(Args) ? sizeof...(Args) : 1] = {}; }; template struct WrapType { using type = T; };