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

Unified Diff: util/posix/symbolic_constants_posix.cc

Issue 615923004: Convert COMPILE_ASSERT to static_assert (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes Created 6 years, 3 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 | « util/numeric/int128_test.cc ('k') | util/stdlib/string_number_conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/posix/symbolic_constants_posix.cc
diff --git a/util/posix/symbolic_constants_posix.cc b/util/posix/symbolic_constants_posix.cc
index 6846c5d241910d8e522e7acc22cf7b7cdf22ba7b..c5a4968bd4b43a4359224e0638ae330ff8ce9722 100644
--- a/util/posix/symbolic_constants_posix.cc
+++ b/util/posix/symbolic_constants_posix.cc
@@ -99,9 +99,9 @@ const char* kSignalNames[] = {
};
#if defined(OS_LINUX)
// NSIG is 64 to account for real-time signals.
-COMPILE_ASSERT(arraysize(kSignalNames) == 32, kSignalNames_length);
+static_assert(arraysize(kSignalNames) == 32, "kSignalNames length");
#else
-COMPILE_ASSERT(arraysize(kSignalNames) == NSIG, kSignalNames_length);
+static_assert(arraysize(kSignalNames) == NSIG, "kSignalNames length");
#endif
const char kSigPrefix[] = "SIG";
« no previous file with comments | « util/numeric/int128_test.cc ('k') | util/stdlib/string_number_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698