diff options
author | Aliaksey Kandratsenka <alk@tut.by> | 2015-09-12 16:26:54 -0700 |
---|---|---|
committer | Aliaksey Kandratsenka <alkondratenko@gmail.com> | 2015-10-05 20:56:28 -0700 |
commit | 7b9ded722e4cef9a44b8d8bfa80d3e1e108cf590 (patch) | |
tree | b6aed7a464b53a2f8954b5c019857dfc32cc18fb | |
parent | 4194e485cbb5d8c59f65aba49da63c08ecc573da (diff) | |
download | gperftools-7b9ded722e4cef9a44b8d8bfa80d3e1e108cf590.tar.gz |
fixed compiler warning in memory_region_map.cc
-rwxr-xr-x | src/memory_region_map.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/memory_region_map.cc b/src/memory_region_map.cc index e885859..841d6f3 100755 --- a/src/memory_region_map.cc +++ b/src/memory_region_map.cc @@ -120,6 +120,7 @@ #include "memory_region_map.h" +#include "base/googleinit.h" #include "base/logging.h" #include "base/low_level_alloc.h" #include "malloc_hook-inl.h" @@ -162,7 +163,8 @@ const void* MemoryRegionMap::saved_buckets_keys_[20][kMaxStackDepth]; // Simple hook into execution of global object constructors, // so that we do not call pthread_self() when it does not yet work. static bool libpthread_initialized = false; -static bool initializer = (libpthread_initialized = true, true); +REGISTER_MODULE_INITIALIZER(libpthread_initialized_setter, + libpthread_initialized = true); static inline bool current_thread_is(pthread_t should_be) { // Before main() runs, there's only one thread, so we're always that thread |