diff --git a/develop/cmake/SetupTargets.cmake b/develop/cmake/SetupTargets.cmake index c1aa6e8..d5275b6 100644 --- a/develop/cmake/SetupTargets.cmake +++ b/develop/cmake/SetupTargets.cmake @@ -15,6 +15,7 @@ target_compile_options(${PROJECT_NAME}.setup_targets INTERFACE -Wno-float-equal -Wno-shadow-field-in-constructor -Wno-unknown-warning-option + -Wno-unsafe-buffer-usage >) target_link_libraries(${PROJECT_NAME}.setup_targets INTERFACE diff --git a/develop/singles/headers/vmath.hpp/vmath_all.hpp b/develop/singles/headers/vmath.hpp/vmath_all.hpp index c1d12d9..3dd8db2 100644 --- a/develop/singles/headers/vmath.hpp/vmath_all.hpp +++ b/develop/singles/headers/vmath.hpp/vmath_all.hpp @@ -1912,7 +1912,7 @@ namespace vmath_hpp::detail public: using row_type = vec; // NOLINTNEXTLINE(*-avoid-c-arrays) - row_type rows[2]; + row_type rows[2]{no_init, no_init}; public: constexpr mat_base() : mat_base(identity_init) {} @@ -1970,7 +1970,7 @@ namespace vmath_hpp::detail public: using row_type = vec; // NOLINTNEXTLINE(*-avoid-c-arrays) - row_type rows[3]; + row_type rows[3]{no_init, no_init, no_init}; public: constexpr mat_base() : mat_base(identity_init) {} @@ -2045,7 +2045,7 @@ namespace vmath_hpp::detail public: using row_type = vec; // NOLINTNEXTLINE(*-avoid-c-arrays) - row_type rows[4]; + row_type rows[4]{no_init, no_init, no_init, no_init}; public: constexpr mat_base() : mat_base(identity_init) {} @@ -3026,7 +3026,7 @@ namespace vmath_hpp::detail template < typename T > class qua_base { public: - vec v; + vec v{no_init}; T s; public: constexpr qua_base() diff --git a/headers/vmath.hpp/vmath_mat.hpp b/headers/vmath.hpp/vmath_mat.hpp index 5e6adbb..4731a97 100644 --- a/headers/vmath.hpp/vmath_mat.hpp +++ b/headers/vmath.hpp/vmath_mat.hpp @@ -21,7 +21,7 @@ namespace vmath_hpp::detail public: using row_type = vec; // NOLINTNEXTLINE(*-avoid-c-arrays) - row_type rows[2]; + row_type rows[2]{no_init, no_init}; public: constexpr mat_base() : mat_base(identity_init) {} @@ -79,7 +79,7 @@ namespace vmath_hpp::detail public: using row_type = vec; // NOLINTNEXTLINE(*-avoid-c-arrays) - row_type rows[3]; + row_type rows[3]{no_init, no_init, no_init}; public: constexpr mat_base() : mat_base(identity_init) {} @@ -154,7 +154,7 @@ namespace vmath_hpp::detail public: using row_type = vec; // NOLINTNEXTLINE(*-avoid-c-arrays) - row_type rows[4]; + row_type rows[4]{no_init, no_init, no_init, no_init}; public: constexpr mat_base() : mat_base(identity_init) {} diff --git a/headers/vmath.hpp/vmath_qua.hpp b/headers/vmath.hpp/vmath_qua.hpp index 34f3c39..092fac8 100644 --- a/headers/vmath.hpp/vmath_qua.hpp +++ b/headers/vmath.hpp/vmath_qua.hpp @@ -16,7 +16,7 @@ namespace vmath_hpp::detail template < typename T > class qua_base { public: - vec v; + vec v{no_init}; T s; public: constexpr qua_base()