ryzom / ryzomcore

Ryzom Core is the open-source project related to the Ryzom game. This community repository is synchronized with the Ryzom Forge repository, based on the Core branch.
https://wiki.ryzom.dev
GNU Affero General Public License v3.0
341 stars 90 forks source link

GCC 11 client build warnings #665

Closed kaetemi closed 2 years ago

kaetemi commented 2 years ago
[75/1236] Building CXX object nel/src/misc/CMakeFiles/nelmisc.dir/cdb_branch_observing_handler.cpp.o
In file included from /mnt/nel/code/nel/include/nel/misc/smart_ptr.h:919,
                 from /mnt/nel/code/nel/include/nel/misc/cdb.h:28,
                 from /mnt/nel/code/nel/include/nel/misc/cdb_branch.h:26,
                 from /mnt/nel/code/nel/include/nel/misc/cdb_branch_observing_handler.h:23,
                 from /mnt/nel/code/nel/src/misc/cdb_branch_observing_handler.cpp:21:
In member function 'void NLMISC::CRefPtr<T>::unRef() const [with T = NLMISC::ICDBNode::IPropertyObserver]',
    inlined from 'NLMISC::CRefPtr<T>::~CRefPtr() [with T = NLMISC::ICDBNode::IPropertyObserver]' at /mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:189:7,
    inlined from 'NLMISC::CCDBBranchObservingHandler::CCDBDBBranchObserverHandle::~CCDBDBBranchObserverHandle()' at /mnt/nel/code/nel/src/misc/cdb_branch_observing_handler.cpp:150:2:
/mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:140:25: warning: 'void operator delete(void*)' called on unallocated object 'NLMISC::CRefCount::NullPtrInfo' [-Wfree-nonheap-object]
  140 |                         delete pinfo;
      |                         ^~~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/misc/cdb.h:28,
                 from /mnt/nel/code/nel/include/nel/misc/cdb_branch.h:26,
                 from /mnt/nel/code/nel/include/nel/misc/cdb_branch_observing_handler.h:23,
                 from /mnt/nel/code/nel/src/misc/cdb_branch_observing_handler.cpp:21:
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h: In destructor 'NLMISC::CCDBBranchObservingHandler::CCDBDBBranchObserverHandle::~CCDBDBBranchObserverHandle()':
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h:69:33: note: declared here
   69 |         static  CPtrInfoBase    NullPtrInfo;
      |                                 ^~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/misc/smart_ptr.h:919,
                 from /mnt/nel/code/nel/include/nel/misc/cdb.h:28,
                 from /mnt/nel/code/nel/include/nel/misc/cdb_branch.h:26,
                 from /mnt/nel/code/nel/include/nel/misc/cdb_branch_observing_handler.h:23,
                 from /mnt/nel/code/nel/src/misc/cdb_branch_observing_handler.cpp:21:
In member function 'void NLMISC::CRefPtr<T>::unRef() const [with T = NLMISC::ICDBNode::IPropertyObserver]',
    inlined from 'NLMISC::CRefPtr<T>& NLMISC::CRefPtr<T>::operator=(T*) [with T = NLMISC::ICDBNode::IPropertyObserver]' at /mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:218:8,
    inlined from 'NLMISC::CCDBBranchObservingHandler::CCDBDBBranchObserverHandle::CCDBDBBranchObserverHandle(NLMISC::ICDBNode::IPropertyObserver*, NLMISC::CCDBNodeBranch*, NLMISC::CCDBBranchObservingHandler*)' at /mnt/nel/code/nel/src/misc/cdb_branch_observing_handler.cpp:142:15:
/mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:140:25: warning: 'void operator delete(void*)' called on unallocated object 'NLMISC::CRefCount::NullPtrInfo' [-Wfree-nonheap-object]
  140 |                         delete pinfo;
      |                         ^~~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/misc/cdb.h:28,
                 from /mnt/nel/code/nel/include/nel/misc/cdb_branch.h:26,
                 from /mnt/nel/code/nel/include/nel/misc/cdb_branch_observing_handler.h:23,
                 from /mnt/nel/code/nel/src/misc/cdb_branch_observing_handler.cpp:21:
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h: In constructor 'NLMISC::CCDBBranchObservingHandler::CCDBDBBranchObserverHandle::CCDBDBBranchObserverHandle(NLMISC::ICDBNode::IPropertyObserver*, NLMISC::CCDBNodeBranch*, NLMISC::CCDBBranchObservingHandler*)':
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h:69:33: note: declared here
   69 |         static  CPtrInfoBase    NullPtrInfo;
      |                                 ^~~~~~~~~~~
[197/1236] Building CXX object nel/src/3d/CMakeFiles/nel3d.dir/channel_mixer.cpp.o
In file included from /mnt/nel/code/nel/include/nel/misc/smart_ptr.h:919,
                 from /mnt/nel/code/nel/include/nel/3d/channel_mixer.h:22,
                 from /mnt/nel/code/nel/src/3d/channel_mixer.cpp:19:
In member function 'void NLMISC::CRefPtr<T>::unRef() const [with T = NL3D::IAnimatable]',
    inlined from 'NLMISC::CRefPtr<T>::~CRefPtr() [with T = NL3D::IAnimatable]' at /mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:189:7,
    inlined from 'NL3D::CChannelMixer::CChannel::~CChannel()' at /mnt/nel/code/nel/include/nel/3d/channel_mixer.h:136:8,
    inlined from 'std::pair<const unsigned int, NL3D::CChannelMixer::CChannel>::~pair()' at /usr/include/c++/11/bits/stl_pair.h:211:12,
    inlined from 'void __gnu_cxx::new_allocator<_Tp>::destroy(_Up*) [with _Up = std::pair<const unsigned int, NL3D::CChannelMixer::CChannel>; _Tp = std::_Rb_tree_node<std::pair<const unsigned int, NL3D::CChannelMixer::CChannel> >]' at /usr/include/c++/11/ext/new_allocator.h:168:13,
    inlined from 'static void std::allocator_traits<std::allocator<_Tp1> >::destroy(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, _Up*) [with _Up = std::pair<const unsigned int, NL3D::CChannelMixer::CChannel>; _Tp = std::_Rb_tree_node<std::pair<const unsigned int, NL3D::CChannelMixer::CChannel> >]' at /usr/include/c++/11/bits/alloc_traits.h:535:15,
    inlined from 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_destroy_node(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type) [with _Key = unsigned int; _Val = std::pair<const unsigned int, NL3D::CChannelMixer::CChannel>; _KeyOfValue = std::_Select1st<std::pair<const unsigned int, NL3D::CChannelMixer::CChannel> >; _Compare = std::less<unsigned int>; _Alloc = std::allocator<std::pair<const unsigned int, NL3D::CChannelMixer::CChannel> >]' at /usr/include/c++/11/bits/stl_tree.h:623:24,
    inlined from 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_drop_node(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type) [with _Key = unsigned int; _Val = std::pair<const unsigned int, NL3D::CChannelMixer::CChannel>; _KeyOfValue = std::_Select1st<std::pair<const unsigned int, NL3D::CChannelMixer::CChannel> >; _Compare = std::less<unsigned int>; _Alloc = std::allocator<std::pair<const unsigned int, NL3D::CChannelMixer::CChannel> >]' at /usr/include/c++/11/bits/stl_tree.h:631:17,
    inlined from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<const unsigned int&>, std::tuple<>}; _Key = unsigned int; _Val = std::pair<const unsigned int, NL3D::CChannelMixer::CChannel>; _KeyOfValue = std::_Select1st<std::pair<const unsigned int, NL3D::CChannelMixer::CChannel> >; _Compare = std::less<unsigned int>; _Alloc = std::allocator<std::pair<const unsigned int, NL3D::CChannelMixer::CChannel> >]' at /usr/include/c++/11/bits/stl_tree.h:2440:18,
    inlined from 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = unsigned int; _Tp = NL3D::CChannelMixer::CChannel; _Compare = std::less<unsigned int>; _Alloc = std::allocator<std::pair<const unsigned int, NL3D::CChannelMixer::CChannel> >]' at /usr/include/c++/11/bits/stl_map.h:501:37,
    inlined from 'sint NL3D::CChannelMixer::addChannel(const string&, NL3D::IAnimatable*, NL3D::IAnimatedValue*, NL3D::ITrack*, uint32, uint32, bool)' at /mnt/nel/code/nel/src/3d/channel_mixer.cpp:371:29:
/mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:140:25: warning: 'void operator delete(void*)' called on unallocated object 'NLMISC::CRefCount::NullPtrInfo' [-Wfree-nonheap-object]
  140 |                         delete pinfo;
      |                         ^~~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/3d/channel_mixer.h:22,
                 from /mnt/nel/code/nel/src/3d/channel_mixer.cpp:19:
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h: In member function 'sint NL3D::CChannelMixer::addChannel(const string&, NL3D::IAnimatable*, NL3D::IAnimatedValue*, NL3D::ITrack*, uint32, uint32, bool)':
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h:69:33: note: declared here
   69 |         static  CPtrInfoBase    NullPtrInfo;
      |                                 ^~~~~~~~~~~
[304/1236] Building CXX object nel/src/3d/CMakeFiles/nel3d.dir/play_list_manager.cpp.o
In file included from /mnt/nel/code/nel/include/nel/misc/smart_ptr.h:919,
                 from /mnt/nel/code/nel/include/nel/3d/channel_mixer.h:22,
                 from /mnt/nel/code/nel/include/nel/3d/animation_playlist.h:21,
                 from /mnt/nel/code/nel/include/nel/3d/play_list_manager.h:21,
                 from /mnt/nel/code/nel/src/3d/play_list_manager.cpp:19:
In member function 'void NLMISC::CRefPtr<T>::unRef() const [with T = NL3D::CAnimationPlaylist]',
    inlined from 'NLMISC::CRefPtr<T>& NLMISC::CRefPtr<T>::operator=(T*) [with T = NL3D::CAnimationPlaylist]' at /mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:209:8,
    inlined from 'NL3D::CPlayListManager::CNode::CNode(NL3D::CAnimationPlaylist*, NL3D::CChannelMixer*)' at /mnt/nel/code/nel/include/nel/3d/play_list_manager.h:75:14,
    inlined from 'void NL3D::CPlayListManager::addPlaylist(NL3D::CAnimationPlaylist*, NL3D::CChannelMixer*)' at /mnt/nel/code/nel/src/3d/play_list_manager.cpp:36:16:
/mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:140:25: warning: 'void operator delete(void*)' called on unallocated object 'NLMISC::CRefCount::NullPtrInfo' [-Wfree-nonheap-object]
  140 |                         delete pinfo;
      |                         ^~~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/3d/channel_mixer.h:22,
                 from /mnt/nel/code/nel/include/nel/3d/animation_playlist.h:21,
                 from /mnt/nel/code/nel/include/nel/3d/play_list_manager.h:21,
                 from /mnt/nel/code/nel/src/3d/play_list_manager.cpp:19:
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h: In member function 'void NL3D::CPlayListManager::addPlaylist(NL3D::CAnimationPlaylist*, NL3D::CChannelMixer*)':
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h:69:33: note: declared here
   69 |         static  CPtrInfoBase    NullPtrInfo;
      |                                 ^~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/misc/smart_ptr.h:919,
                 from /mnt/nel/code/nel/include/nel/3d/channel_mixer.h:22,
                 from /mnt/nel/code/nel/include/nel/3d/animation_playlist.h:21,
                 from /mnt/nel/code/nel/include/nel/3d/play_list_manager.h:21,
                 from /mnt/nel/code/nel/src/3d/play_list_manager.cpp:19:
In member function 'void NLMISC::CRefPtr<T>::unRef() const [with T = NL3D::CAnimationPlaylist]',
    inlined from 'NLMISC::CRefPtr<T>& NLMISC::CRefPtr<T>::operator=(T*) [with T = NL3D::CAnimationPlaylist]' at /mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:218:8,
    inlined from 'NL3D::CPlayListManager::CNode::CNode(NL3D::CAnimationPlaylist*, NL3D::CChannelMixer*)' at /mnt/nel/code/nel/include/nel/3d/play_list_manager.h:75:14,
    inlined from 'void NL3D::CPlayListManager::addPlaylist(NL3D::CAnimationPlaylist*, NL3D::CChannelMixer*)' at /mnt/nel/code/nel/src/3d/play_list_manager.cpp:36:16:
/mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:140:25: warning: 'void operator delete(void*)' called on unallocated object 'NLMISC::CRefCount::NullPtrInfo' [-Wfree-nonheap-object]
  140 |                         delete pinfo;
      |                         ^~~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/3d/channel_mixer.h:22,
                 from /mnt/nel/code/nel/include/nel/3d/animation_playlist.h:21,
                 from /mnt/nel/code/nel/include/nel/3d/play_list_manager.h:21,
                 from /mnt/nel/code/nel/src/3d/play_list_manager.cpp:19:
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h: In member function 'void NL3D::CPlayListManager::addPlaylist(NL3D::CAnimationPlaylist*, NL3D::CChannelMixer*)':
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h:69:33: note: declared here
   69 |         static  CPtrInfoBase    NullPtrInfo;
      |                                 ^~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/misc/smart_ptr.h:919,
                 from /mnt/nel/code/nel/include/nel/3d/channel_mixer.h:22,
                 from /mnt/nel/code/nel/include/nel/3d/animation_playlist.h:21,
                 from /mnt/nel/code/nel/include/nel/3d/play_list_manager.h:21,
                 from /mnt/nel/code/nel/src/3d/play_list_manager.cpp:19:
In member function 'void NLMISC::CRefPtr<T>::unRef() const [with T = NL3D::CChannelMixer]',
    inlined from 'NLMISC::CRefPtr<T>& NLMISC::CRefPtr<T>::operator=(T*) [with T = NL3D::CChannelMixer]' at /mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:209:8,
    inlined from 'NL3D::CPlayListManager::CNode::CNode(NL3D::CAnimationPlaylist*, NL3D::CChannelMixer*)' at /mnt/nel/code/nel/include/nel/3d/play_list_manager.h:76:18,
    inlined from 'void NL3D::CPlayListManager::addPlaylist(NL3D::CAnimationPlaylist*, NL3D::CChannelMixer*)' at /mnt/nel/code/nel/src/3d/play_list_manager.cpp:36:16:
/mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:140:25: warning: 'void operator delete(void*)' called on unallocated object 'NLMISC::CRefCount::NullPtrInfo' [-Wfree-nonheap-object]
  140 |                         delete pinfo;
      |                         ^~~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/3d/channel_mixer.h:22,
                 from /mnt/nel/code/nel/include/nel/3d/animation_playlist.h:21,
                 from /mnt/nel/code/nel/include/nel/3d/play_list_manager.h:21,
                 from /mnt/nel/code/nel/src/3d/play_list_manager.cpp:19:
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h: In member function 'void NL3D::CPlayListManager::addPlaylist(NL3D::CAnimationPlaylist*, NL3D::CChannelMixer*)':
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h:69:33: note: declared here
   69 |         static  CPtrInfoBase    NullPtrInfo;
      |                                 ^~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/misc/smart_ptr.h:919,
                 from /mnt/nel/code/nel/include/nel/3d/channel_mixer.h:22,
                 from /mnt/nel/code/nel/include/nel/3d/animation_playlist.h:21,
                 from /mnt/nel/code/nel/include/nel/3d/play_list_manager.h:21,
                 from /mnt/nel/code/nel/src/3d/play_list_manager.cpp:19:
In member function 'void NLMISC::CRefPtr<T>::unRef() const [with T = NL3D::CChannelMixer]',
    inlined from 'NLMISC::CRefPtr<T>::~CRefPtr() [with T = NL3D::CChannelMixer]' at /mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:189:7,
    inlined from 'NL3D::CPlayListManager::CNode::~CNode()' at /mnt/nel/code/nel/include/nel/3d/play_list_manager.h:67:9,
    inlined from 'std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode>::~pair()' at /usr/include/c++/11/bits/stl_pair.h:211:12,
    inlined from 'void __gnu_cxx::new_allocator<_Tp>::destroy(_Up*) [with _Up = std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode>; _Tp = std::_Rb_tree_node<std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode> >]' at /usr/include/c++/11/ext/new_allocator.h:168:13,
    inlined from 'static void std::allocator_traits<std::allocator<_Tp1> >::destroy(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, _Up*) [with _Up = std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode>; _Tp = std::_Rb_tree_node<std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode> >]' at /usr/include/c++/11/bits/alloc_traits.h:535:15,
    inlined from 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_destroy_node(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type) [with _Key = NL3D::CAnimationPlaylist*; _Val = std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode>; _KeyOfValue = std::_Select1st<std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode> >; _Compare = std::less<NL3D::CAnimationPlaylist*>; _Alloc = std::allocator<std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode> >]' at /usr/include/c++/11/bits/stl_tree.h:623:24,
    inlined from 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_drop_node(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type) [with _Key = NL3D::CAnimationPlaylist*; _Val = std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode>; _KeyOfValue = std::_Select1st<std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode> >; _Compare = std::less<NL3D::CAnimationPlaylist*>; _Alloc = std::allocator<std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode> >]' at /usr/include/c++/11/bits/stl_tree.h:631:17,
    inlined from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<NL3D::CAnimationPlaylist* const&>, std::tuple<>}; _Key = NL3D::CAnimationPlaylist*; _Val = std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode>; _KeyOfValue = std::_Select1st<std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode> >; _Compare = std::less<NL3D::CAnimationPlaylist*>; _Alloc = std::allocator<std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode> >]' at /usr/include/c++/11/bits/stl_tree.h:2440:18,
    inlined from 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = NL3D::CAnimationPlaylist*; _Tp = NL3D::CPlayListManager::CNode; _Compare = std::less<NL3D::CAnimationPlaylist*>; _Alloc = std::allocator<std::pair<NL3D::CAnimationPlaylist* const, NL3D::CPlayListManager::CNode> >]' at /usr/include/c++/11/bits/stl_map.h:501:37,
    inlined from 'void NL3D::CPlayListManager::addPlaylist(NL3D::CAnimationPlaylist*, NL3D::CChannelMixer*)' at /mnt/nel/code/nel/src/3d/play_list_manager.cpp:36:13:
/mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:140:25: warning: 'void operator delete(void*)' called on unallocated object 'NLMISC::CRefCount::NullPtrInfo' [-Wfree-nonheap-object]
  140 |                         delete pinfo;
      |                         ^~~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/3d/channel_mixer.h:22,
                 from /mnt/nel/code/nel/include/nel/3d/animation_playlist.h:21,
                 from /mnt/nel/code/nel/include/nel/3d/play_list_manager.h:21,
                 from /mnt/nel/code/nel/src/3d/play_list_manager.cpp:19:
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h: In member function 'void NL3D::CPlayListManager::addPlaylist(NL3D::CAnimationPlaylist*, NL3D::CChannelMixer*)':
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h:69:33: note: declared here
   69 |         static  CPtrInfoBase    NullPtrInfo;
      |                                 ^~~~~~~~~~~
[384/1236] Building CXX object nel/src/3d/CMakeFiles/nel3d.dir/skeleton_spawn_script.cpp.o
In file included from /mnt/nel/code/nel/include/nel/misc/smart_ptr.h:919,
                 from /mnt/nel/code/nel/include/nel/3d/skeleton_spawn_script.h:21,
                 from /mnt/nel/code/nel/src/3d/skeleton_spawn_script.cpp:19:
In member function 'void NLMISC::CRefPtr<T>::unRef() const [with T = NL3D::CTransformShape]',
    inlined from 'NLMISC::CRefPtr<T>& NLMISC::CRefPtr<T>::operator=(T*) [with T = NL3D::CTransformShape]' at /mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:218:8,
    inlined from 'NL3D::CSkeletonSpawnScript::CInstance::CInstance()' at /mnt/nel/code/nel/include/nel/3d/skeleton_spawn_script.h:70:11,
    inlined from 'void NL3D::CSkeletonSpawnScript::parseCache(NL3D::CScene*, NL3D::CSkeletonModel*)' at /mnt/nel/code/nel/src/3d/skeleton_spawn_script.cpp:155:27:
/mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:140:25: warning: 'void operator delete(void*)' called on unallocated object 'NLMISC::CRefCount::NullPtrInfo' [-Wfree-nonheap-object]
  140 |                         delete pinfo;
      |                         ^~~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/3d/skeleton_spawn_script.h:21,
                 from /mnt/nel/code/nel/src/3d/skeleton_spawn_script.cpp:19:
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h: In member function 'void NL3D::CSkeletonSpawnScript::parseCache(NL3D::CScene*, NL3D::CSkeletonModel*)':
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h:69:33: note: declared here
   69 |         static  CPtrInfoBase    NullPtrInfo;
      |                                 ^~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/misc/smart_ptr.h:919,
                 from /mnt/nel/code/nel/include/nel/3d/skeleton_spawn_script.h:21,
                 from /mnt/nel/code/nel/src/3d/skeleton_spawn_script.cpp:19:
In member function 'void NLMISC::CRefPtr<T>::unRef() const [with T = NL3D::CTransformShape]',
    inlined from 'NLMISC::CRefPtr<T>& NLMISC::CRefPtr<T>::operator=(T*) [with T = NL3D::CTransformShape]' at /mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:218:8,
    inlined from 'NL3D::CSkeletonSpawnScript::CInstance::CInstance()' at /mnt/nel/code/nel/include/nel/3d/skeleton_spawn_script.h:70:11,
    inlined from 'void NL3D::CSkeletonSpawnScript::parseCache(NL3D::CScene*, NL3D::CSkeletonModel*)' at /mnt/nel/code/nel/src/3d/skeleton_spawn_script.cpp:207:27:
/mnt/nel/code/nel/include/nel/misc/smart_ptr_inline.h:140:25: warning: 'void operator delete(void*)' called on unallocated object 'NLMISC::CRefCount::NullPtrInfo' [-Wfree-nonheap-object]
  140 |                         delete pinfo;
      |                         ^~~~~~~~~~~~
In file included from /mnt/nel/code/nel/include/nel/3d/skeleton_spawn_script.h:21,
                 from /mnt/nel/code/nel/src/3d/skeleton_spawn_script.cpp:19:
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h: In member function 'void NL3D::CSkeletonSpawnScript::parseCache(NL3D::CScene*, NL3D::CSkeletonModel*)':
/mnt/nel/code/nel/include/nel/misc/smart_ptr.h:69:33: note: declared here
   69 |         static  CPtrInfoBase    NullPtrInfo;
      |                                 ^~~~~~~~~~~
[648/1236] Building CXX object nel/src/net/CMakeFiles/nelnet.dir/module_gateway.cpp.o
/mnt/nel/code/nel/src/net/module_gateway.cpp: In member function 'virtual void NLNET::CStandardGateway::sendSecurityCommand(const NLNET::TParsedCommandLine&)':
/mnt/nel/code/nel/src/net/module_gateway.cpp:698:51: warning: 'this' pointer is null [-Wnonnull]
  698 |                         _SecurityPlugin->onCommand(command);
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/mnt/nel/code/nel/src/net/module_gateway.cpp: In member function 'virtual void NLNET::CStandardGateway::_ZThn312_N5NLNET16CStandardGateway19sendSecurityCommandERKNS_18TParsedCommandLineE(const NLNET::TParsedCommandLine&)':
/mnt/nel/code/nel/src/net/module_gateway.cpp:698:51: warning: 'this' pointer is null [-Wnonnull]
  698 |                         _SecurityPlugin->onCommand(command);
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
[787/1236] Building CXX object ryzom/common/src/game_share/CMakeFiles/ryzom_gameshare.dir/crypt.cpp.o
/mnt/nel/code/ryzom/common/src/game_share/crypt.cpp: In function 'void rz_init_des()':
/mnt/nel/code/ryzom/common/src/game_share/crypt.cpp:861:27: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  861 |                 perm[k-1] = i+1;
      |                 ~~~~~~~~~~^~~~~
/mnt/nel/code/ryzom/common/src/game_share/crypt.cpp:772:30: note: at offset -1 into destination object 'perm' of size 64
  772 |         static unsigned char perm[64], tmp32[32];       /* "static" for speed */
      |                              ^~~~
[824/1236] Building CXX object ryzom/common/src/game_share/CMakeFiles/ryzom_gameshare.dir/mirror_prop_value.cpp.o
/mnt/nel/code/ryzom/common/src/game_share/mirror_prop_value.cpp: In member function 'CMirrorPropValueItem<NLMISC::CEntityId, CPropLocationUnpacked> CMirrorPropValueList<NLMISC::CEntityId, CPropLocationUnpacked>::front()':
/mnt/nel/code/ryzom/common/src/game_share/mirror_prop_value.cpp:120:85: warning: taking address of packed member of 'CMirrorPropValueList<NLMISC::CEntityId, CPropLocationUnpacked>::TSharedListCell' may result in an unaligned pointer value [-Waddress-of-packed-member]
  120 |         return CMirrorPropValueItem<NLMISC::CEntityId,CPropLocationUnpacked>( this, &(_Container[*_PtFront].Value) );
      |                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1074/1236] Building CXX object ryzom/client/src/CMakeFiles/ryzom_client.dir/interface_v3/chat_filter.cpp.o
/mnt/nel/code/ryzom/client/src/interface_v3/chat_filter.cpp: In member function 'void CChatTargetFilter::setTargetPlayer(const string&)':
/mnt/nel/code/ryzom/client/src/interface_v3/chat_filter.cpp:343:49: warning: 'this' pointer is null [-Wnonnull]
  343 |                 _TargetPartyChat->removeObserver(this);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /mnt/nel/code/ryzom/client/src/interface_v3/chat_filter.h:25,
                 from /mnt/nel/code/ryzom/client/src/interface_v3/chat_filter.cpp:25:
/mnt/nel/code/ryzom/client/src/interface_v3/chat_window.h:143:14: note: in a call to non-static member function 'void CChatWindow::removeObserver(CChatWindow::IObserver*)'
  143 |         void removeObserver(IObserver *obs);
      |              ^~~~~~~~~~~~~~
kaetemi commented 2 years ago

Duplicate of #646