diff --git a/src/cli/cli.cpp b/src/cli/cli.cpp index b5c2160ca..672cf3259 100644 --- a/src/cli/cli.cpp +++ b/src/cli/cli.cpp @@ -231,6 +231,9 @@ Interpreter::Interpreter(Instance *aInstance) , mPingTimer(*aInstance, &Interpreter::HandlePingTimer, this) #if OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE , mResolvingInProgress(0) +#endif +#if OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE + , mSntpQueryingInProgress(false) #endif , mUdp(*this) , mDataset(*this)