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

Unified Diff: Source/wtf/PageAllocator.cpp

Issue 54883002: Fix more warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
Index: Source/wtf/PageAllocator.cpp
diff --git a/Source/wtf/PageAllocator.cpp b/Source/wtf/PageAllocator.cpp
index 19d14f74ed0f7224ce673547aff3aedfa38b8cbc..f082cc2eb46df261def71e0e38eea46d2f342fc4 100644
--- a/Source/wtf/PageAllocator.cpp
+++ b/Source/wtf/PageAllocator.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "wtf/PageAllocator.h"
+#include "wtf/Assertions.h"
#include "wtf/ProcessID.h"
#include "wtf/SpinLock.h"
@@ -69,7 +70,7 @@ void* allocSuperPages(void* addr, size_t len)
// correct alignment within the allocation.
if (UNLIKELY(reinterpret_cast<uintptr_t>(ptr) & kSuperPageOffsetMask)) {
int ret = munmap(ptr, len);
- ASSERT(!ret);
+ ASSERT_UNUSED(ret, !ret);
ptr = reinterpret_cast<char*>(mmap(0, len + kSuperPageSize - kSystemPageSize, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0));
RELEASE_ASSERT(ptr != MAP_FAILED);
int numSystemPagesToUnmap = kNumSystemPagesPerSuperPage - 1;

Powered by Google App Engine
This is Rietveld 408576698