We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5becd81 commit 5fe1ba8Copy full SHA for 5fe1ba8
src/lib/support/PersistedCounter.h
@@ -229,6 +229,11 @@ class PersistedCounter : public MonotonicallyIncreasingCounter<T>
229
T valueLE = GetInitialCounterValue();
230
uint16_t size = sizeof(valueLE);
231
232
+ // clang-tidy claims that we're returning without writing to 'aStartValue',
233
+ // assign 0 to supppress the warning. In case of error, the value wont't be
234
+ // used anyway.
235
+ aStartValue = 0;
236
+
237
VerifyOrReturnError(mKey.IsInitialized(), CHIP_ERROR_INCORRECT_STATE);
238
239
CHIP_ERROR err = mStorage->SyncGetKeyValue(mKey.KeyName(), &valueLE, size);
0 commit comments