Commit 731689ff by Derek Mauro Committed by Copybara-Service

Adds ABSL_CONST_INIT to initializing declarations where it is missing

Fixes #1159

PiperOrigin-RevId: 444278141
Change-Id: Iae055fe78b438c31150a9e7601b734f4981f002e
parent 18907473
...@@ -56,6 +56,7 @@ void AllocateThreadIdentityKey(ThreadIdentityReclaimerFunction reclaimer) { ...@@ -56,6 +56,7 @@ void AllocateThreadIdentityKey(ThreadIdentityReclaimerFunction reclaimer) {
// *different* instances of this ptr. // *different* instances of this ptr.
// Apple platforms have the visibility attribute, but issue a compile warning // Apple platforms have the visibility attribute, but issue a compile warning
// that protected visibility is unsupported. // that protected visibility is unsupported.
ABSL_CONST_INIT // Must come before __attribute__((visibility("protected")))
#if ABSL_HAVE_ATTRIBUTE(visibility) && !defined(__APPLE__) #if ABSL_HAVE_ATTRIBUTE(visibility) && !defined(__APPLE__)
__attribute__((visibility("protected"))) __attribute__((visibility("protected")))
#endif // ABSL_HAVE_ATTRIBUTE(visibility) && !defined(__APPLE__) #endif // ABSL_HAVE_ATTRIBUTE(visibility) && !defined(__APPLE__)
......
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
#include <ostream> #include <ostream>
#include "absl/base/attributes.h"
namespace absl { namespace absl {
ABSL_NAMESPACE_BEGIN ABSL_NAMESPACE_BEGIN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment