diff --git a/examples/lock-app/p6/src/LockManager.cpp b/examples/lock-app/p6/src/LockManager.cpp index 4614f1b597000c..d83b984b789779 100644 --- a/examples/lock-app/p6/src/LockManager.cpp +++ b/examples/lock-app/p6/src/LockManager.cpp @@ -628,6 +628,8 @@ const char * LockManager::lockStateToString(DlLockState lockState) const return "Locked"; case DlLockState::kUnlocked: return "Unlocked"; + case DlLockState::kUnknownEnumValue: + break; } return "Unknown"; diff --git a/examples/lock-app/p6/src/ZclCallbacks.cpp b/examples/lock-app/p6/src/ZclCallbacks.cpp index 3803e59b2a8ef2..cdfd3a8d27e883 100644 --- a/examples/lock-app/p6/src/ZclCallbacks.cpp +++ b/examples/lock-app/p6/src/ZclCallbacks.cpp @@ -56,9 +56,7 @@ void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath & * @param endpoint Ver.: always * */ -void emberAfOnOffClusterInitCallback(EndpointId endpoint) -{ -} +void emberAfOnOffClusterInitCallback(EndpointId endpoint) {} bool emberAfPluginDoorLockOnDoorLockCommand(chip::EndpointId endpointId, const Optional & pinCode, DlOperationError & err) {