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

Unified Diff: components/crash/app/breakpad_linux.cc

Issue 794683005: replace COMPILE_ASSERT with static_assert in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting fixup Created 6 years 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: components/crash/app/breakpad_linux.cc
diff --git a/components/crash/app/breakpad_linux.cc b/components/crash/app/breakpad_linux.cc
index 930b7e5900eedc65a5fb9a8851d80adea4350cb5..09a9251e2d80c080617b4ecf70fc7ddb21b887b0 100644
--- a/components/crash/app/breakpad_linux.cc
+++ b/components/crash/app/breakpad_linux.cc
@@ -851,11 +851,11 @@ class NonBrowserCrashHandler : public google_breakpad::CrashGenerationClient {
&serialized_map));
iov[5].iov_base = serialized_map;
#if !defined(ADDRESS_SANITIZER)
- COMPILE_ASSERT(5 == kCrashIovSize - 1, Incorrect_Number_Of_Iovec_Members);
+ static_assert(5 == kCrashIovSize - 1, "kCrashIovSize should equal 6");
#else
iov[6].iov_base = const_cast<char*>(g_asan_report_str);
iov[6].iov_len = kMaxAsanReportSize + 1;
- COMPILE_ASSERT(6 == kCrashIovSize - 1, Incorrect_Number_Of_Iovec_Members);
+ static_assert(6 == kCrashIovSize - 1, "kCrashIovSize should equal 7");
#endif
msg.msg_iov = iov;

Powered by Google App Engine
This is Rietveld 408576698