Skip to content

Replace all remaining instances of reinterpret_cast with std::bit_cast #72

Replace all remaining instances of reinterpret_cast with std::bit_cast

Replace all remaining instances of reinterpret_cast with std::bit_cast #72

Triggered via pull request December 4, 2024 17:11
Status Failure
Total duration 20m 50s
Artifacts

linux.yaml

on: pull_request
Matrix: linux
Fit to window
Zoom out
Zoom in

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]