From 406ad5becebc1761f0858fbd0af64f0be8870ec0 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 11 Sep 2013 04:43:05 +0200 Subject: [PATCH] BString::SetToFormat(): Add printf format function attribute --- 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 4ce0d13729..e33fbc0540 100644 --- a/headers/os/support/String.h +++ b/headers/os/support/String.h @@ -55,7 +55,8 @@ public: BString& SetToChars(const BString& string, int32 charCount); BString& AdoptChars(BString& from, int32 charCount); - BString& SetToFormat(const char* format, ...); + BString& SetToFormat(const char* format, ...) + __attribute__((__format__(__printf__, 2, 3))); BString& SetToFormatVarArgs(const char* format, va_list args);