We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13da787 commit 2b0e009Copy full SHA for 2b0e009
src/lib/support/PersistedCounter.h
@@ -240,6 +240,11 @@ class PersistedCounter : public MonotonicallyIncreasingCounter<T>
240
}
241
else
242
{
243
+ // clang-tidy claims that we're returning without writing to 'aStartValue',
244
+ // assign 0 to supppress the warning. In case of error, the value wont't be
245
+ // used anyway.
246
+ aStartValue = 0;
247
+
248
// TODO: Figure out how to avoid a bootloop here. Maybe we should just
249
// init to 0? Or a random value?
250
ReturnErrorOnFailure(err);
0 commit comments