ports/lang/v8-devel/files/patch-src-allocation-tracker.cc
Sunpoet Po-Chuan Hsieh 550e05b2ad - Fix warnings generated by recent snapshot of Clang 3.7.0, including:
- Printing non-void pointers with %p.
  - Left-shifting negative numbers.

PR:		202534
Submitted by:	dim
2015-09-20 20:18:02 +00:00

13 lines
598 B
C++

--- src/allocation-tracker.cc.orig 2014-06-03 08:52:11 UTC
+++ src/allocation-tracker.cc
@@ -152,8 +152,8 @@ void AddressToTraceMap::Clear() {
void AddressToTraceMap::Print() {
PrintF("[AddressToTraceMap (%" V8PRIuPTR "): \n", ranges_.size());
for (RangeMap::iterator it = ranges_.begin(); it != ranges_.end(); ++it) {
- PrintF("[%p - %p] => %u\n", it->second.start, it->first,
- it->second.trace_node_id);
+ PrintF("[%p - %p] => %u\n", reinterpret_cast<void*>(it->second.start),
+ reinterpret_cast<void*>(it->first), it->second.trace_node_id);
}
PrintF("]\n");
}