Replace all remaining instances of reinterpret_cast with std::bit_cast #72
Annotations
11 errors and 12 warnings
(gcc-14):
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]
|
(gcc-14):
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]
|
(gcc-14)
Process completed with exit code 1.
|
(gcc-11):
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]
|
(gcc-11):
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]
|
(gcc-11):
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]
|
(gcc-11)
Process completed with exit code 1.
|
(gcc-12):
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 [-Werror=maybe-uninitialized]
|
(gcc-12)
‘*(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]
|
(gcc-12)
‘*(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]
|
(gcc-12)
Process completed with exit code 1.
|
(gcc-14)
‘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=]
|
(gcc-14)
‘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=]
|
(gcc-11)
‘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=]
|
(gcc-11)
‘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=]
|
(gcc-12)
‘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=]
|
(gcc-12)
‘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=]
|
(llvm-16):
benchmarks/json/canada.cpp#L258
unused function 'read_using_simdjson' [-Wunused-function]
|
(llvm-16)
‘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=]
|
(llvm-16)
‘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=]
|
(llvm-18)
‘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=]
|
(llvm-18)
‘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=]
|
(llvm-18):
benchmarks/json/canada.cpp#L258
unused function 'read_using_simdjson' [-Wunused-function]
|