From d21392096ab6dcef67c105c660e2d9ed23c7c075 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 30 Apr 2020 13:41:52 +0200 Subject: [PATCH] Fix GCC compilation issue. --- include/lol/private/base/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lol/private/base/string.h b/include/lol/private/base/string.h index 3bcf07c9..a3e15362 100644 --- a/include/lol/private/base/string.h +++ b/include/lol/private/base/string.h @@ -178,7 +178,7 @@ std::basic_string vformat(char const *fmt, va_list ap) // XXX: we cheat by setting the argument time to char instead of T, because // I found no other way to use the printf attribute. template -std::basic_string format(char const *fmt, ...) lol_attr_printf_format(1, 2) +std::basic_string lol_attr_printf_format(1, 2) format(char const *fmt, ...) { va_list ap; va_start(ap, fmt);