From 9c27385a3df20ea36c89ecc1f687e236dfb006d0 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 1 Jun 2021 12:59:34 +0200 Subject: [PATCH 1/1] Add attribute(printf) to xbt::string_printf. --- include/xbt/string.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xbt/string.hpp b/include/xbt/string.hpp index a8bd3176fe..2c46f9b57e 100644 --- a/include/xbt/string.hpp +++ b/include/xbt/string.hpp @@ -31,7 +31,7 @@ namespace xbt { * * @ingroup XBT_str */ -XBT_PUBLIC std::string string_printf(const char* fmt, ...); +XBT_PUBLIC std::string string_printf(const char* fmt, ...) XBT_ATTRIB_PRINTF(1, 2); /** Create a C++ string from a C-style format * -- 2.30.2