HomeAssistantRepository/dev-libs/protobuf/files/protobuf-23.3-static_assert-failure.patch
Andreas Billmeier (@Home/mbp) 4ba122bf54
re add dev-libs/protobuf-protobuf-24.3
Signed-off-by: Andreas Billmeier <b@edevau.net>
2023-10-28 12:38:32 +02: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