Index: tools/android/memdump/memdump.cc |
diff --git a/tools/android/memdump/memdump.cc b/tools/android/memdump/memdump.cc |
index cb4b05af5f5a1bb1e530f006e96d6f94e72a2f14..5ff459e4b5c25a2699bb16b91c861f1b6e080f46 100644 |
--- a/tools/android/memdump/memdump.cc |
+++ b/tools/android/memdump/memdump.cc |
@@ -218,7 +218,7 @@ bool GetPagesForMemoryMap(int pagemap_fd, |
addr += kPageSize, ++page_index) { |
DCHECK_EQ(0, addr % kPageSize); |
PageMapEntry page_map_entry = {}; |
- COMPILE_ASSERT(sizeof(PageMapEntry) == sizeof(uint64), unexpected_size); |
+ static_assert(sizeof(PageMapEntry) == sizeof(uint64), "unexpected size"); |
ssize_t bytes = read(pagemap_fd, &page_map_entry, sizeof(page_map_entry)); |
if (bytes != sizeof(PageMapEntry) && bytes != 0) { |
PLOG(ERROR) << "read"; |