Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change declaration order to address GCC 12.1 error (#18385)
GCC 12.1 complains: ``` ../../src/messaging/ExchangeMgr.cpp: In constructor ‘chip::Messaging::ExchangeManager::ExchangeManager()’: ../../src/messaging/ExchangeMgr.cpp:62:58: error: member ‘chip::Messaging::ExchangeManager::mContextPool’ is used uninitialized [-Werror=uninitialized] 62 | ExchangeManager::ExchangeManager() : mReliableMessageMgr(mContextPool) | ^~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics cc1plus: all warnings being treated as errors ``` Make sure mContextPool comes before mReliableMessageMgr in the declaration order.
- Loading branch information