While making flatbuffers 1.12.0 dependent software, I'm getting the following error.
(TISDK_9_0) che7@che7-server2:~/Desktop/sourav/flatbuffers-1.12.0$ make Consolidate compiler generated dependencies of target flatbuffers [ 5%] Built target flatbuffers Consolidate compiler generated dependencies of target flatc [ 40%] Built target flatc Consolidate compiler generated dependencies of target flathash [ 42%] Built target flathash [ 43%] All generated files were updated. [ 57%] Built target generated_code Consolidate compiler generated dependencies of target flattests [ 58%] Building CXX object CMakeFiles/flattests.dir/tests/test.cpp.o In file included from /home/che7/Desktop/sourav/flatbuffers-1.12.0/tests/test.cpp:39: /home/che7/Desktop/sourav/flatbuffers-1.12.0/tests/arrays_test_generated.h: In constructor ‘MyGame::Example::ArrayStruct::ArrayStruct(float, int8_t, int32_t)’: /home/che7/Desktop/sourav/flatbuffers-1.12.0/tests/arrays_test_generated.h:156:16: error: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct MyGame::Example::NestedStruct’; use assignment or value-initialization instead [-Werror=class-memaccess] 156 | std::memset(d_, 0, sizeof(d_)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /home/che7/Desktop/sourav/flatbuffers-1.12.0/tests/arrays_test_generated.h:66:40: note: ‘struct MyGame::Example::NestedStruct’ declared here 66 | FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(8) NestedStruct FLATBUFFERS_FINAL_CLASS { | ^~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: *** [CMakeFiles/flattests.dir/build.make:178: CMakeFiles/flattests.dir/tests/test.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:175: CMakeFiles/flattests.dir/all] Error 2 make: *** [Makefile:166: all] Error 2
When searched online, I found that this issue is solved in later versions of flatbuffers.. Is a newer version of Flatbuffers supported for TI SDK? Or is there any other solution?