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

Unified Diff: runtime/platform/assert.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/lib/byte_array.cc ('k') | runtime/platform/globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/assert.h
diff --git a/runtime/platform/assert.h b/runtime/platform/assert.h
index 22af38d97704c4a5889702c53ba87c8cba86b1f0..3ad928c9296825d91c88eb9ec6dfce59ae8c9ff8 100644
--- a/runtime/platform/assert.h
+++ b/runtime/platform/assert.h
@@ -33,7 +33,7 @@ class DynamicAssertionHelper {
DynamicAssertionHelper(const char* file, int line, Kind kind)
: file_(file), line_(line), kind_(kind) { }
- void Fail(const char* format, ...);
+ void Fail(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
#if defined(TESTING)
template<typename E, typename A>
« no previous file with comments | « runtime/lib/byte_array.cc ('k') | runtime/platform/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698