Renamed DEPRECATED to ARDUINOJSON_DEPRECATED

This commit is contained in:
Benoit Blanchon committed 2021-05-04 14:44:07 +02:00
1 parent a88cf8fab7
commit ab23625091
5 files changed
+23 -16

No files matched your search

+2 -8
View File
@@ -2,17 +2,11 @@
// Copyright Benoit Blanchon 2014-2021
// MIT License
#define ARDUINOJSON_DEPRECATED(msg) // nothing
#include <ArduinoJson.h>
#include <catch.hpp>
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#ifdef _MSC_VER
#pragma warning(disable : 4996) // deprecation warning
#endif
TEST_CASE("Deprecated features") {
StaticJsonDocument<256> doc;
const char* s = "hello";