From 5739174968f04c1448e93ce5f5da15b9bab75643 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Mon, 2 Oct 2023 11:24:53 -0700 Subject: [PATCH] Fix compiler warnings from GCC. --- kernel/yosys.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/yosys.h b/kernel/yosys.h index 99edfb70036..97a79861e15 100644 --- a/kernel/yosys.h +++ b/kernel/yosys.h @@ -316,7 +316,9 @@ inline std::string vstringf(const char *fmt, va_list ap) #endif } -inline std::string stringf(const char *fmt, ...) YS_ATTRIBUTE(format(printf, 1, 2)) +std::string stringf(const char *fmt, ...) YS_ATTRIBUTE(format(printf, 1, 2)); + +inline std::string stringf(const char *fmt, ...) { std::string string; va_list ap;