diff options
author | Aliaksey Kandratsenka <alk@tut.by> | 2014-01-19 12:30:53 -0800 |
---|---|---|
committer | Aliaksey Kandratsenka <alk@tut.by> | 2014-01-19 12:30:53 -0800 |
commit | 71a239e559c9ea2300ad0511f8de7077db5369c3 (patch) | |
tree | e5689c8c51c98d59a3e330444f767ac04f0ca884 | |
parent | 54568e32fc2321e0adef15fb1eab4e3a7f8ce5b0 (diff) | |
download | gperftools-71a239e559c9ea2300ad0511f8de7077db5369c3.tar.gz |
check debug_malloc_implementation_space via COMPILE_ASSERT
Because we can and because compile-time is always better.
-rw-r--r-- | src/debugallocation.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debugallocation.cc b/src/debugallocation.cc index 23cb019..f37c457 100644 --- a/src/debugallocation.cc +++ b/src/debugallocation.cc @@ -1083,8 +1083,8 @@ static union { REGISTER_MODULE_INITIALIZER(debugallocation, { #if (__cplusplus >= 201103L) - RAW_CHECK(alignof(debug_malloc_implementation_space) >= alignof(DebugMallocImplementation), - "debug_malloc_implementation_space is not properly aligned"); + COMPILE_ASSERT(alignof(debug_malloc_implementation_space) >= alignof(DebugMallocImplementation), + debug_malloc_implementation_space_is_not_properly_aligned); #endif // Either we or valgrind will control memory management. We // register our extension if we're the winner. Otherwise let |