From c4a4ed52729b732b40526a14bc4e2fcfbf674fb3 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Fri, 4 Jun 2021 11:22:00 +0200 Subject: [PATCH] clang-tidy: muted "uninitialized field" in Latch --- src/ArduinoJson/Json/Latch.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ArduinoJson/Json/Latch.hpp b/src/ArduinoJson/Json/Latch.hpp index aef1fe36..70866d6b 100644 --- a/src/ArduinoJson/Json/Latch.hpp +++ b/src/ArduinoJson/Json/Latch.hpp @@ -45,7 +45,8 @@ class Latch { } TReader _reader; - char _current; + char _current; // NOLINT(clang-analyzer-optin.cplusplus.UninitializedObject) + // Not initialized in constructor (+10 bytes on AVR) bool _loaded; #if ARDUINOJSON_DEBUG bool _ended;