Fix CID 338449: Uninitialized scalar field (UNINIT_CTOR)

uninit_member: Non-static class member callsCnt is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member stopOnPonderhit is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member ponder._M_base is not initialized in this constructor nor in any functions that it calls.
This commit is contained in:
Calcitem 2021-08-14 11:39:43 +08:00
parent 6750c50f91
commit b669434942
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
1 changed files with 2 additions and 3 deletions

View File

@ -147,9 +147,8 @@ struct MainThread : public Thread
{
using Thread::Thread;
int callsCnt;
bool stopOnPonderhit;
std::atomic_bool ponder;
bool stopOnPonderhit { false };
std::atomic_bool ponder { false };
};