1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-15 04:26:37 +00:00
openmw/components
elsid 891d6fd0ba
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-28 22:00:03 +02:00
..
bgsm
bsa
bullethelpers
compiler CI match script names and remove dead code 2024-07-01 16:57:40 +02:00
config Add progress bars where the launcher can be limited by IO 2025-04-09 01:36:52 +01:00
contentselector Don't precompute load order errors after every change 2025-04-08 01:19:24 +01:00
crashcatcher Improve Windows crash/freeze catcher UX 2025-04-12 18:38:55 +01:00
debug Manual reformatting that wasn't done automatically on my machine 2025-04-11 17:41:40 +01:00
detournavigator Reduce a chance to have a deadlock in the AsyncNavMeshUpdater 2025-03-23 23:33:40 +01:00
esm Fix warning: -Wmaybe-uninitialized 2025-04-28 22:00:03 +02:00
esm3 Even more elses 2025-04-10 18:32:52 +01:00
esm4 Skip SLSD, SCVR, SCRV subrecords in QUST record 2025-03-15 13:11:26 +01:00
esmloader
esmterrain CLEANUP(CS): Do heightData check in actual implementation, revert 2024-06-10 02:02:31 -05:00
fallback Remove redundant using namespace Fallback 2025-04-18 12:27:37 +02:00
files Use non-deprecated known folder API 2025-03-25 01:32:44 +00:00
fontloader Merge branch 'fontexport' into 'master' 2025-03-27 11:04:35 +00:00
fx Fix multiview use in techniques 2025-01-26 16:26:36 +01:00
interpreter Exit with fatal error on duplicated instruction code 2024-06-28 22:24:24 +02:00
l10n Use normalized path in l10m manager 2024-08-18 21:07:46 +02:00
loadinglistener
lua Use unique_ptr to handle lua state lifetime 2025-04-18 14:01:07 +02:00
lua_ui Ensure class members are tied to the main Lua state 2025-03-03 19:37:07 +01:00
misc Use normalized path for correctMeshPath 2024-11-16 12:49:11 +01:00
myguiplatform Replace toNormalized by Normalized 2024-09-18 23:53:20 +02:00
navmeshtool
nif Optimize NIF boolean vector reading 2025-02-07 04:55:06 +03:00
nifbullet Use normalized path in BulletShapeManager 2024-09-27 23:33:58 +02:00
nifosg Allow skinned plants to be harvested 2025-04-06 11:01:26 +02:00
platform Remove vestigial Boost libraries 2024-08-23 14:06:13 +01:00
process
resource Merge branch 'vfs_normalized_path_22' into 'master' 2024-12-01 21:45:01 +00:00
sceneutil Give point lights a minimum radius of 16 2025-03-24 22:14:08 +03:00
sdlutil Silence SDL3 window/display events coming from SDL2-compat 2025-02-04 20:30:19 +03:00
serialization
settings Add an option to match sunlight to the sun (#8032) 2024-12-28 18:29:35 +03:00
shader Don't expect TangentSpaceGenerator to work without texcoords 2024-10-24 13:36:49 +01:00
sqlite3
std140
stereo Replace includes by forward declaration 2025-04-20 02:28:34 +02:00
terrain Allow opting out of water culling (#7318) 2024-10-31 14:54:05 +03:00
testing Use temporary directory for tests output 2025-03-23 23:33:40 +01:00
to_utf8 Do not use no longer supported std::char_traits 2025-03-11 20:32:36 +03:00
translation
version
vfs Forbid to use toNormalized for normalized path 2024-11-18 21:21:33 +01:00
widgets Address my own review concerns 2024-09-19 04:05:54 +03:00
CMakeLists.txt Use unique_ptr to handle lua state lifetime 2025-04-18 14:01:07 +02:00
doc.hpp