From ac9b74df65dab21070e8c31b25a37fd6d9fe2532 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Thu, 10 Aug 2023 18:38:05 +0200 Subject: [PATCH] Show a warning when `ARDUINOJSON_ENABLE_STRING_DEDUPLICATION` is defined --- src/ArduinoJson/compatibility.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ArduinoJson/compatibility.hpp b/src/ArduinoJson/compatibility.hpp index a8623230..b2d745aa 100644 --- a/src/ArduinoJson/compatibility.hpp +++ b/src/ArduinoJson/compatibility.hpp @@ -10,6 +10,10 @@ #error ARDUINOJSON_SLOT_OFFSET_SIZE has been removed, use ARDUINOJSON_SLOT_ID_SIZE instead #endif +#ifdef ARDUINOJSON_ENABLE_STRING_DEDUPLICATION +#warning "ARDUINOJSON_ENABLE_STRING_DEDUPLICATION has been removed, string deduplication is now always enabled" +#endif + #ifdef __GNUC__ #define ARDUINOJSON_PRAGMA(x) _Pragma(#x)