From 969af8044aeec17f9154065f24f2b7ff8827c97c Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sun, 2 Nov 2014 11:34:12 +0100 Subject: [PATCH] BString: Add format attribute to SetToFormatVarArgs. --- headers/os/support/String.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/headers/os/support/String.h b/headers/os/support/String.h index 9dcc88c9ff..60e6967e77 100644 --- a/headers/os/support/String.h +++ b/headers/os/support/String.h @@ -58,7 +58,8 @@ public: BString& SetToFormat(const char* format, ...) __attribute__((__format__(__printf__, 2, 3))); BString& SetToFormatVarArgs(const char* format, - va_list args); + va_list args) + __attribute__((__format__(__printf__, 2, 0))); // Substring copying BString& CopyInto(BString& into, int32 fromOffset,