1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-14 15:40:18 +00:00
elsid 9ae7b542c6
Fix warning: -Wmaybe-uninitialized
In file included from apps/opencs/model/world/pathgrid.hpp:7,
                 from apps/opencs/model/world/idcollection.hpp:15,
                 from apps/opencs/model/world/idcollection.cpp:1:
In constructor ‘constexpr ESM::Pathgrid::Pathgrid(ESM::Pathgrid&&)’,
    inlined from ‘constexpr CSMWorld::Pathgrid::Pathgrid(CSMWorld::Pathgrid&&)’ at apps/opencs/model/world/pathgrid.hpp:24:12,
    inlined from ‘constexpr CSMWorld::Record<CSMWorld::Pathgrid>::Record(CSMWorld::Record<CSMWorld::Pathgrid>&&)’ at apps/opencs/model/world/record.hpp:39:12,
    inlined from ‘std::__detail::__unique_ptr_t<_Tp> std::make_unique(_Args&& ...) [with _Tp = CSMWorld::Record<CSMWorld::Pathgrid>; _Args = {CSMWorld::Record<CSMWorld::Pathgrid>}]’ at /usr/include/c++/13.2.1/bits/unique_ptr.h:1070:30,
    inlined from ‘std::unique_ptr<CSMWorld::RecordBase> CSMWorld::Record<ESXRecordT>::modifiedCopy() const [with ESXRecordT = CSMWorld::Pathgrid]’ at apps/opencs/model/world/record.hpp:92:116:
components/esm3/loadpgrd.hpp:19:12: warning: ‘<unnamed>.CSMWorld::Record<CSMWorld::Pathgrid>::mBase.CSMWorld::Pathgrid::<unnamed>.ESM::Pathgrid::mData’ may be used uninitialized [-Wmaybe-uninitialized]
   19 |     struct Pathgrid
      |            ^~~~~~~~
In file included from apps/opencs/model/world/idcollection.hpp:8:
apps/opencs/model/world/record.hpp: In member function ‘std::unique_ptr<CSMWorld::RecordBase> CSMWorld::Record<ESXRecordT>::modifiedCopy() const [with ESXRecordT = CSMWorld::Pathgrid]’:
apps/opencs/model/world/record.hpp:92:53: note: ‘<anonymous>’ declared here
   92 |         return std::make_unique<Record<ESXRecordT>>(Record<ESXRecordT>(State_ModifiedOnly, nullptr, &(this->get())));
      |                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-03-16 02:34:50 +01:00
..
2022-12-27 19:15:55 +01:00
2022-10-31 21:04:01 +01:00
2022-10-31 21:04:01 +01:00
2024-03-12 20:09:04 +01:00
2024-03-12 20:09:04 +01:00
2022-10-31 21:04:01 +01:00
2024-01-14 22:10:18 +04:00
2024-03-12 20:09:04 +01:00
2022-10-31 21:04:01 +01:00
2022-10-31 21:04:01 +01:00
2022-10-31 21:04:01 +01:00
2023-02-15 23:10:35 +01:00
2022-10-31 21:04:01 +01:00
2022-10-31 21:04:01 +01:00
2022-10-31 21:04:01 +01:00
2022-10-31 21:04:01 +01:00
2023-03-18 09:30:48 +00:00
2022-10-31 21:04:01 +01:00
2022-10-31 21:04:01 +01:00
2023-05-25 20:56:07 +02:00
2023-02-25 13:49:22 +01:00
2024-03-16 02:34:50 +01:00
2022-10-31 21:04:01 +01:00
2022-12-27 19:15:55 +01:00
2023-12-31 17:12:46 +00:00
2023-07-31 17:53:33 +04:00
2023-01-21 18:39:42 +01:00
2022-09-22 21:35:26 +03:00
2022-10-31 21:04:01 +01:00
2022-10-31 21:04:01 +01:00
2023-07-28 20:58:18 +04:00