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

Unified Diff: webkit/glue/dom_serializer.cc

Issue 339059: Add compiler-specific "examine printf format" attributes to printfs. (Closed)
Patch Set: cleanups Created 11 years, 1 month 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
Index: webkit/glue/dom_serializer.cc
diff --git a/webkit/glue/dom_serializer.cc b/webkit/glue/dom_serializer.cc
index a7b469b5e510dd579ced23c33477c299f17086eb..d8cf3a482e995e7480265bcda64a6770fc30e33e 100644
--- a/webkit/glue/dom_serializer.cc
+++ b/webkit/glue/dom_serializer.cc
@@ -49,6 +49,10 @@
// override the incorrect base URL and make sure we alway load correct local
// saved resource files.
+// We must include format_macros up here, before any WebKit headers
+// include inttypes.h.
+#include "base/format_macros.h"
+
#include "config.h"
#include "base/compiler_specific.h"
@@ -87,7 +91,7 @@ namespace {
// Default "mark of the web" declaration
static const char* const kDefaultMarkOfTheWeb =
- "\n<!-- saved from url=(%04d)%s -->\n";
+ "\n<!-- saved from url=(%04" PRIuS ")%s -->\n";
// Default meat content for writing correct charset declaration.
static const wchar_t* const kDefaultMetaContent =

Powered by Google App Engine
This is Rietveld 408576698