From 731689ffc2ad7bb95cc86b5b6160dbe7858f27a0 Mon Sep 17 00:00:00 2001 From: Derek Mauro Date: Mon, 25 Apr 2022 08:40:42 -0700 Subject: Adds ABSL_CONST_INIT to initializing declarations where it is missing Fixes #1159 PiperOrigin-RevId: 444278141 Change-Id: Iae055fe78b438c31150a9e7601b734f4981f002e --- absl/base/internal/thread_identity.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'absl/base/internal') diff --git a/absl/base/internal/thread_identity.cc b/absl/base/internal/thread_identity.cc index 9950e63a..db46aafb 100644 --- a/absl/base/internal/thread_identity.cc +++ b/absl/base/internal/thread_identity.cc @@ -56,6 +56,7 @@ void AllocateThreadIdentityKey(ThreadIdentityReclaimerFunction reclaimer) { // *different* instances of this ptr. // Apple platforms have the visibility attribute, but issue a compile warning // that protected visibility is unsupported. +ABSL_CONST_INIT // Must come before __attribute__((visibility("protected"))) #if ABSL_HAVE_ATTRIBUTE(visibility) && !defined(__APPLE__) __attribute__((visibility("protected"))) #endif // ABSL_HAVE_ATTRIBUTE(visibility) && !defined(__APPLE__) -- cgit v1.2.3