From: <no...@gi...> - 2011-08-29 08:26:28
|
Branch: refs/heads/master Home: https://github.com/znc/znc Commit: 601692999d3328204c99550058a51c5a33755565 https://github.com/znc/znc/commit/601692999d3328204c99550058a51c5a33755565 Author: Uli Schlachter <ps...@zn...> Date: 2011-08-29 (Mon, 29 Aug 2011) Changed paths: M Modules.cpp Log Message: ----------- 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 <ps...@zn...> |