mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-22 17:17:03 +02:00
flatbuffers: fix build with gcc-12
This commit is contained in:
parent
bf7c8436bb
commit
9128d900ff
1 changed files with 13 additions and 0 deletions
13
srcpkgs/flatbuffers/patches/init-var.patch
Normal file
13
srcpkgs/flatbuffers/patches/init-var.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
Index: flatbuffers-1.12.0/tests/test_builder.h
|
||||
===================================================================
|
||||
--- flatbuffers-1.12.0.orig/tests/test_builder.h
|
||||
+++ flatbuffers-1.12.0/tests/test_builder.h
|
||||
@@ -63,7 +63,7 @@ template<class Builder>
|
||||
void builder_move_assign_after_releaseraw_test(Builder b1) {
|
||||
auto root_offset1 = populate1(b1);
|
||||
b1.Finish(root_offset1);
|
||||
- size_t size, offset;
|
||||
+ size_t size = 0, offset;
|
||||
std::shared_ptr<uint8_t> raw(
|
||||
b1.ReleaseRaw(size, offset), [size](uint8_t *ptr) {
|
||||
flatbuffers::DefaultAllocator::dealloc(ptr, size);
|
Loading…
Add table
Reference in a new issue