forked from bblanchon/ArduinoJson
Added a flag to ignore deprecation warnings
This commit is contained in:
@ -7,10 +7,12 @@
|
|||||||
|
|
||||||
#include "jsmn.h"
|
#include "jsmn.h"
|
||||||
|
|
||||||
|
#ifndef ARDUINO_JSON_NO_DEPRECATED_WARNING
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#define DEPRECATED __attribute__((deprecated))
|
#define DEPRECATED __attribute__((deprecated))
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#define DEPRECATED __declspec(deprecated)
|
#define DEPRECATED __declspec(deprecated)
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define DEPRECATED
|
#define DEPRECATED
|
||||||
#endif
|
#endif
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
* Benoit Blanchon 2014 - MIT License
|
* Benoit Blanchon 2014 - MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define ARDUINO_JSON_NO_DEPRECATED_WARNING
|
||||||
|
|
||||||
#include "CppUnitTest.h"
|
#include "CppUnitTest.h"
|
||||||
#include "JsonParser.h"
|
#include "JsonParser.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
* Benoit Blanchon 2014 - MIT License
|
* Benoit Blanchon 2014 - MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define ARDUINO_JSON_NO_DEPRECATED_WARNING
|
||||||
|
|
||||||
#include "CppUnitTest.h"
|
#include "CppUnitTest.h"
|
||||||
#include "JsonParser.h"
|
#include "JsonParser.h"
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
* Benoit Blanchon 2014 - MIT License
|
* Benoit Blanchon 2014 - MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define ARDUINO_JSON_NO_DEPRECATED_WARNING
|
||||||
|
|
||||||
#include "CppUnitTest.h"
|
#include "CppUnitTest.h"
|
||||||
#include "JsonParser.h"
|
#include "JsonParser.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
Reference in New Issue
Block a user