Index: src/profiler/strings-storage.h |
diff --git a/src/profiler/strings-storage.h b/src/profiler/strings-storage.h |
index 7164caef637055072f60d7af7f711ca1f539c64c..0849d6330021ca0f3c831144cf0b732fefd6373b 100644 |
--- a/src/profiler/strings-storage.h |
+++ b/src/profiler/strings-storage.h |
@@ -6,6 +6,7 @@ |
#define V8_PROFILER_STRINGS_STORAGE_H_ |
#include "src/allocation.h" |
+#include "src/base/compiler-specific.h" |
#include "src/hashmap.h" |
namespace v8 { |
@@ -19,7 +20,8 @@ class StringsStorage { |
~StringsStorage(); |
const char* GetCopy(const char* src); |
- const char* GetFormatted(const char* format, ...); |
+ PRINTF_FORMAT(2, 3) const char* GetFormatted(const char* format, ...); |
+ PRINTF_FORMAT(2, 0) |
const char* GetVFormatted(const char* format, va_list args); |
const char* GetName(Name* name); |
const char* GetName(int index); |