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

Unified Diff: tools/android/memdump/memdump.cc

Issue 825323002: replace COMPILE_ASSERT with static_assert in tools/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add fixups Created 5 years, 11 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 | « tools/android/forwarder2/common.h ('k') | tools/ipc_fuzzer/ipclist/ipclist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
« no previous file with comments | « tools/android/forwarder2/common.h ('k') | tools/ipc_fuzzer/ipclist/ipclist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698