mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added a flag to ignore deprecation warnings
This commit is contained in:
		| @@ -6,13 +6,15 @@ | ||||
| #pragma once | ||||
|  | ||||
| #include "jsmn.h" | ||||
|  | ||||
|  | ||||
| #ifndef ARDUINO_JSON_NO_DEPRECATED_WARNING | ||||
| #ifdef __GNUC__ | ||||
| #define DEPRECATED __attribute__((deprecated)) | ||||
| #elif defined(_MSC_VER) | ||||
| #define DEPRECATED __declspec(deprecated) | ||||
| #else | ||||
| #define DEPRECATED | ||||
| #endif | ||||
| #else | ||||
| #define DEPRECATED | ||||
| #endif | ||||
|  | ||||
| namespace ArduinoJson | ||||
|   | ||||
| @@ -3,6 +3,8 @@ | ||||
| * Benoit Blanchon 2014 - MIT License | ||||
| */ | ||||
|  | ||||
| #define ARDUINO_JSON_NO_DEPRECATED_WARNING | ||||
|  | ||||
| #include "CppUnitTest.h" | ||||
| #include "JsonParser.h" | ||||
| #include <string> | ||||
|   | ||||
| @@ -3,6 +3,8 @@ | ||||
| * Benoit Blanchon 2014 - MIT License | ||||
| */ | ||||
|  | ||||
| #define ARDUINO_JSON_NO_DEPRECATED_WARNING | ||||
|  | ||||
| #include "CppUnitTest.h" | ||||
| #include "JsonParser.h" | ||||
|  | ||||
|   | ||||
| @@ -2,6 +2,8 @@ | ||||
| * Arduino JSON library | ||||
| * Benoit Blanchon 2014 - MIT License | ||||
| */ | ||||
|  | ||||
| #define ARDUINO_JSON_NO_DEPRECATED_WARNING | ||||
|  | ||||
| #include "CppUnitTest.h" | ||||
| #include "JsonParser.h" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user