diff -r 5fc32e4b2a8c -r 248d0b85cbda sources/mystring.h --- a/sources/mystring.h Wed Jan 27 19:01:37 2021 +0200 +++ b/sources/mystring.h Wed Jan 27 19:27:23 2021 +0200 @@ -46,7 +46,7 @@ std::string mid(const std::string& str, int rangeBegin, int rangeEnd); std::string right(const std::string& str, int length); std::string vsprintf(const char* formatString, va_list args); -std::string __cdecl sprintf(const char* formatString, ...); +std::string __cdecl sprintf(const char* formatString, ...) GNUATTRIBUTE((format(printf, 1, 2))); std::string remove_range(const std::string& string, int start, int end); void replace_all(std::string& str, const char* text, const char* replacement); bool starts_with(const std::string& str, const std::string& other);