Replace all remaining instances of reinterpret_cast with std::bit_cast #72
Annotations
4 errors and 2 warnings
Compile:
include/rfl/parsing/Parser_default.hpp#L268
‘*(test_box::DecisionTree**)((char*)&res + offsetof(rfl::Result<test_box::DecisionTree>,rfl::Result<test_box::DecisionTree>::t_or_err_.std::array<unsigned char, 32>::_M_elems[24]))’ may be used uninitialized [-Werror=maybe-uninitialized]
|
Compile:
include/rfl/parsing/Parser_default.hpp#L268
‘*(test_box::DecisionTree**)((char*)&res + offsetof(rfl::Result<test_box::DecisionTree>,rfl::Result<test_box::DecisionTree>::t_or_err_.std::array<unsigned char, 32>::_M_elems[16]))’ may be used uninitialized [-Werror=maybe-uninitialized]
|
Compile:
include/rfl/Variant.hpp#L264
‘*(rfl::Variant<test_box::DecisionTree::Leaf, test_box::DecisionTree::Node>*)((char*)&res + offsetof(rfl::Result<test_box::DecisionTree>,rfl::Result<test_box::DecisionTree>::t_or_err_.std::array<unsigned char, 32>::_M_elems[0])).rfl::Variant<test_box::DecisionTree::Leaf, test_box::DecisionTree::Node>::index_’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
|
Compile
Process completed with exit code 1.
|
Make sure the library compiles with Conan
‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ writing between 2 and 9223372036854775803 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
|
Make sure the library compiles with Conan
‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ writing between 2 and 9223372036854775803 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
|
Loading