From 4627f851ca548e6fa3b44b35a5d92d68388445f8 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Mon, 6 Apr 2020 18:19:32 +0200 Subject: [PATCH] Fixed "statement is unreachable" warning on IAR (issue #1233) --- CHANGELOG.md | 1 + src/ArduinoJson/Variant/SlotFunctions.hpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4a72062..d9ff86d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ HEAD ---- * Fixed "maybe-uninitialized" warning (issue #1217) +* Fixed "statement is unreachable" warning on IAR (issue #1233) v6.15.0 (2020-03-22) ------- diff --git a/src/ArduinoJson/Variant/SlotFunctions.hpp b/src/ArduinoJson/Variant/SlotFunctions.hpp index ef75a94d..b96b58e4 100644 --- a/src/ArduinoJson/Variant/SlotFunctions.hpp +++ b/src/ArduinoJson/Variant/SlotFunctions.hpp @@ -24,7 +24,6 @@ inline bool slotSetKey(VariantSlot* var, TAdaptedString key, MemoryPool* pool, } else { return slotSetKey(var, key, pool, storage_policy::store_by_copy()); } - return true; } template