From 6b7833deee20e3abb5856d64d7f359d754fea4ca Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Fri, 11 Dec 2009 00:26:28 +0100 Subject: Avoiding compiler warnings with gcc 4.4.0 With the changed __attribute__ it compiles now without warnings on gcc 4.4.0. For other compiler this should work too, because this format is already used for log() in log.h. --- src/utils/stringutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h index a0e766fb..c5757d0f 100644 --- a/src/utils/stringutils.h +++ b/src/utils/stringutils.h @@ -80,7 +80,7 @@ std::string strprintf(char const *, ...) #ifdef __GNUC__ /* This attribute is nice: it even works through gettext invokation. For example, gcc will complain that strprintf(_("%s"), 42) is ill-formed. */ - __attribute__((format(printf, 1, 2))) + __attribute__((__format__(__printf__, 1, 2))) #endif ; -- cgit v1.2.3-60-g2f50