Files
gentoo/dev-libs/protobuf/files/protobuf-23.3-static_assert-failure.patch
Mark Conway 1bb07c91ec dev-libs/protobuf: version bump to 23.3
Upstream's versioning has change which messes with slot numbers.

Closes: https://bugs.gentoo.org/906811
Signed-off-by: Mark Conway <mark.conway@themobiusproject.com>
Signed-off-by: Sam James <sam@gentoo.org>
2023-08-21 18:29:13 +01:00

12 lines
529 B
Diff

https://github.com/protocolbuffers/protobuf/issues/9433
--- a/src/google/protobuf/descriptor.cc
+++ b/src/google/protobuf/descriptor.cc
@@ -384,7 +384,6 @@ class FlatAllocatorImpl {
ABSL_CHECK(!has_allocated());
if (std::is_trivially_destructible<U>::value) {
// Trivial types are aligned to 8 bytes.
- static_assert(alignof(U) <= 8, "");
total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
} else {
// Since we can't use `if constexpr`, just make the expression compile