Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Silence some wrong compiler warnings
For every available module call implementation, we got this: Modules.cpp: In member function ‘bool CModules::OnGetAvailableMods(std::__debug::set<CModInfo>&, CModInfo::EModuleType)’: Modules.cpp:149:72: error: ‘pNetwork’ may be used uninitialized in this function [-Werror=uninitialized] Modules.cpp:808:260: note: ‘pNetwork’ was declared here Modules.cpp:148:54: error: ‘pOldUser’ may be used uninitialized in this function [-Werror=uninitialized] Modules.cpp:808:168: note: ‘pOldUser’ was declared here I guess GCC saw that m_pNetwork and m_pUser could be changed by the module call to a non-NULL value which means we would really use an uninitialized value... Signed-off-by: Uli Schlachter <psychon@znc.in>
- Loading branch information