From: Arnaud Giersch Date: Tue, 1 Jun 2021 10:59:34 +0000 (+0200) Subject: Add attribute(printf) to xbt::string_printf. X-Git-Tag: v3.28~186 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9c27385a3df20ea36c89ecc1f687e236dfb006d0?hp=5fec5d08d744431061257ced7d7244182468b2f8 Add attribute(printf) to xbt::string_printf. --- 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 *