mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
clang-tidy: muted "uninitialized pointer/field" in StringCopier
This commit is contained in:
@@ -55,8 +55,12 @@ class StringCopier {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
MemoryPool* _pool;
|
MemoryPool* _pool;
|
||||||
|
|
||||||
|
// These fields aren't initialized by the constructor but startString()
|
||||||
|
//
|
||||||
|
// NOLINTNEXTLINE(clang-analyzer-optin.cplusplus.UninitializedObject)
|
||||||
char* _ptr;
|
char* _ptr;
|
||||||
size_t _size;
|
// NOLINTNEXTLINE(clang-analyzer-optin.cplusplus.UninitializedObject)
|
||||||
size_t _capacity;
|
size_t _size, _capacity;
|
||||||
};
|
};
|
||||||
} // namespace ARDUINOJSON_NAMESPACE
|
} // namespace ARDUINOJSON_NAMESPACE
|
||||||
|
|||||||
Reference in New Issue
Block a user