Skip to content

Commit

Permalink
Merge pull request #8323 from georgthegreat/patch-1
Browse files Browse the repository at this point in the history
Fix PROTOBUF_CONSTINIT macro redefinition
  • Loading branch information
acozzette committed Feb 23, 2021
2 parents 326ea55 + 2e47e3b commit a43ddfb
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/google/protobuf/port_def.inc
Expand Up @@ -575,17 +575,6 @@
#define PROTOBUF_CONSTINIT
#endif

#if defined(__cpp_constinit)
#define PROTOBUF_CONSTINIT constinit
#elif defined(__has_cpp_attribute)
#if __has_cpp_attribute(clang::require_constant_initialization)
#define PROTOBUF_CONSTINIT [[clang::require_constant_initialization]]
#endif
#endif
#ifndef PROTOBUF_CONSTINIT
#define PROTOBUF_CONSTINIT
#endif

// Some globals with an empty non-trivial destructor are annotated with
// no_destroy for performance reasons. It reduces the cost of these globals in
// non-opt mode and under sanitizers.
Expand Down

0 comments on commit a43ddfb

Please sign in to comment.