openmw/components/esm
elsid 7cef010bfe
Fix warning: -Wmaybe-uninitialized
In member function 'ESM::RefId {anonymous}::IdGettingVisitor::operator()(const MWWorld::Ptr&) const',
    inlined from 'constexpr _Res std::__invoke_impl(__invoke_other, _Fn&&, _Args&& ...) [with _Res = ESM::RefId; _Fn = {anonymous}::IdGettingVisitor; _Args = {const MWWorld::Ptr&}]' at /usr/include/c++/13/bits/invoke.h:61:36,
    inlined from 'constexpr typename std::__invoke_result<_Functor, _ArgTypes>::type std::__invoke(_Callable&&, _Args&& ...) [with _Callable = {anonymous}::IdGettingVisitor; _Args = {const MWWorld::Ptr&}]' at /usr/include/c++/13/bits/invoke.h:96:40,
    inlined from 'static constexpr decltype(auto) std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<_Result_type (*)(_Visitor, _Variants ...)>, std::integer_sequence<long unsigned int, __indices ...> >::__visit_invoke(_Visitor&&, _Variants ...) [with _Result_type = std::__detail::__variant::__deduce_visit_result<ESM::RefId>; _Visitor = {anonymous}::IdGettingVisitor&&; _Variants = {const std::variant<MWWorld::Ptr, std::pair<ESM::FormId, ESM::RefId> >&}; long unsigned int ...__indices = {0}]' at /usr/include/c++/13/variant:1060:24,
    inlined from 'constexpr decltype(auto) std::__do_visit(_Visitor&&, _Variants&& ...) [with _Result_type = __detail::__variant::__deduce_visit_result<ESM::RefId>; _Visitor = {anonymous}::IdGettingVisitor; _Variants = {const variant<MWWorld::Ptr, pair<ESM::FormId, ESM::RefId> >&}]' at /usr/include/c++/13/variant:1815:5,
    inlined from 'constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...) [with _Visitor = {anonymous}::IdGettingVisitor; _Variants = {const variant<MWWorld::Ptr, pair<ESM::FormId, ESM::RefId> >&}]' at /usr/include/c++/13/variant:1878:34,
    inlined from 'ESM::RefId MWScript::GlobalScriptDesc::getId() const' at ../../../apps/openmw/mwscript/globalscripts.cpp:120:26:
../../../apps/openmw/mwscript/globalscripts.cpp:91:35: error: '*(const uint32_t*)((char*)&<unnamed> + offsetof(ESM::RefId, ESM::RefId::mValue.std::variant<ESM::EmptyRefId, ESM::ESM3ExteriorCellRefId, ESM::StringRefId, ESM::FormId, ESM::GeneratedRefId, ESM::IndexRefId>::<unnamed>.std::__detail::__variant::_Variant_base<ESM::EmptyRefId, ESM::ESM3ExteriorCellRefId, ESM::StringRefId, ESM::FormId, ESM::GeneratedRefId, ESM::IndexRefId>::<unnamed>.std::__detail::__variant::_Move_assign_base<true, ESM::EmptyRefId, ESM::ESM3ExteriorCellRefId, ESM::StringRefId, ESM::FormId, ESM::GeneratedRefId, ESM::IndexRefId>::<unnamed>.std::__detail::__variant::_Copy_assign_base<true, ESM::EmptyRefId, ESM::ESM3ExteriorCellRefId, ESM::StringRefId, ESM::FormId, ESM::GeneratedRefId, ESM::IndexRefId>::<unnamed>.std::__detail::__variant::_Move_ctor_base<true, ESM::EmptyRefId, ESM::ESM3ExteriorCellRefId, ESM::StringRefId, ESM::FormId, ESM::GeneratedRefId, ESM::IndexRefId>::<unnamed>.std::__detail::__variant::_Copy_ctor_base<true, ESM::EmptyRefId, ESM::ESM3ExteriorCellRefId, ESM::StringRefId, ESM::FormId, ESM::GeneratedRefId, ESM::IndexRefId>::<unnamed>.std::__detail::__variant::_Variant_storage<true, ESM::EmptyRefId, ESM::ESM3ExteriorCellRefId, ESM::StringRefId, ESM::FormId, ESM::GeneratedRefId, ESM::IndexRefId>::_M_u))' may be used uninitialized [-Werror=maybe-uninitialized]
   91 |                 return ESM::RefId();
      |                                   ^
../../../apps/openmw/mwscript/globalscripts.cpp: In member function 'ESM::RefId MWScript::GlobalScriptDesc::getId() const':
../../../apps/openmw/mwscript/globalscripts.cpp:91:35: note: '<anonymous>' declared here
   91 |                 return ESM::RefId();
      |                                   ^
2025-04-26 13:04:21 +02:00
..
attr.cpp Assign StringRefIds to attributes 2023-08-20 10:28:46 +02:00
attr.hpp Assign StringRefIds to attributes 2023-08-20 10:28:46 +02:00
common.cpp First pass with include-what-you-use 2022-10-09 10:39:43 +00:00
common.hpp ESM4: add a way to get the current form version 2023-09-25 21:26:51 +03:00
decompose.hpp Add getCompositeSize and handle NPC data 2024-03-06 18:16:55 +01:00
defs.hpp Replace fixed size writeHNT calls with decomposition 2024-03-03 19:39:19 +01:00
esm3exteriorcellrefid.cpp Keep things coherent between references and and cell table 2023-04-20 10:03:34 +02:00
esm3exteriorcellrefid.hpp Work around a regression in MSVC 2024-12-09 17:23:17 +01:00
esmbridge.cpp Renamed esm3esm4bridge => esmbridge 2023-01-27 18:40:15 +01:00
esmbridge.hpp Load ESM4 actors 2023-07-26 11:47:50 +02:00
esmcommon.hpp Improve format version in content selector 2024-01-01 18:16:58 +04:00
esmterrain.cpp Reduce include dependency for land records 2023-08-19 01:30:17 +02:00
esmterrain.hpp Reduce include dependency for land records 2023-08-19 01:30:17 +02:00
exteriorcelllocation.hpp Log caught exceptions 2024-05-26 02:52:11 +02:00
format.cpp Add option to disable precompiled headers 2024-03-08 02:11:51 +01:00
format.hpp Move fourCC to a separate file 2022-11-06 15:35:16 +01:00
formid.cpp Change FormId::toString to be consistent with RefId. Remove FormIdRefId. 2023-08-27 09:55:06 +02:00
formid.hpp Change FormId::toString to be consistent with RefId. Remove FormIdRefId. 2023-08-27 09:55:06 +02:00
fourcc.hpp Move fourCC to a separate file 2022-11-06 15:35:16 +01:00
generatedrefid.cpp Add more tests for printing RefId and clarify some constants 2023-04-20 02:35:14 +02:00
generatedrefid.hpp Add option to disable precompiled headers 2024-03-08 02:11:51 +01:00
indexrefid.cpp Add more tests for printing RefId and clarify some constants 2023-04-20 02:35:14 +02:00
indexrefid.hpp Work around a regression in MSVC 2024-12-09 17:23:17 +01:00
luascripts.cpp Use unique_ptr to handle lua state lifetime 2025-04-18 14:01:07 +02:00
luascripts.hpp Store Lua script path as VFS normalized 2024-09-15 13:53:20 +02:00
position.hpp Replace fixed size writeHNT calls with decomposition 2024-03-03 19:39:19 +01:00
quaternion.hpp Split ESM headers 2024-05-03 01:55:20 +02:00
records.hpp Place ESM4 static collections to the scene 2024-05-09 17:26:27 +03:00
refid.cpp Change FormId::toString to be consistent with RefId. Remove FormIdRefId. 2023-08-27 09:55:06 +02:00
refid.hpp Fix warning: -Wmaybe-uninitialized 2025-04-26 13:04:21 +02:00
serializerefid.hpp Add more tests for printing RefId and clarify some constants 2023-04-20 02:35:14 +02:00
stringrefid.cpp Create getRefIds 2023-07-13 20:30:16 +02:00
stringrefid.hpp Make RefId::deserializeText return an empty RefId if no pre-existing StringRefId can be found 2023-07-13 16:49:23 +02:00
typetraits.hpp Split type traits for ESM4, ESM3 and unite common 2023-03-26 19:07:23 +02:00
util.cpp Split ESM headers 2024-05-03 01:55:20 +02:00
util.hpp Split ESM headers 2024-05-03 01:55:20 +02:00
vector3.hpp Split ESM headers 2024-05-03 01:55:20 +02:00