Renamed DEPRECATED to ARDUINOJSON_DEPRECATED

This commit is contained in:
Benoit Blanchon
2021-05-04 14:35:14 +02:00
parent a88cf8fab7
commit ab23625091
5 changed files with 23 additions and 16 deletions

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";