Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Unified Diff: runtime/platform/json.h

Issue 10869063: Add attributions so printf like functions can have their arguments checked. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/platform/globals.h ('k') | runtime/vm/allocation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/json.h
diff --git a/runtime/platform/json.h b/runtime/platform/json.h
index ebbace9539eb52c348cc209705c9b8ecae917240..0da90b8e75c4f1db71ab4a34803f9d4949f378e8 100644
--- a/runtime/platform/json.h
+++ b/runtime/platform/json.h
@@ -116,7 +116,7 @@ class TextBuffer : ValueObject {
explicit TextBuffer(intptr_t buf_size);
~TextBuffer();
- intptr_t Printf(const char* format, ...);
+ intptr_t Printf(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
void AddChar(char ch);
void AddUTF8(uint32_t ch);
void AddEscapedChar(uint32_t ch);
« no previous file with comments | « runtime/platform/globals.h ('k') | runtime/vm/allocation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698