mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Fixed warnings in Visual Studio
This commit is contained in:
		| @@ -7,5 +7,9 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib) | |||||||
| set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib) | set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib) | ||||||
| set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) | ||||||
|  |  | ||||||
|  | if(MSVC) | ||||||
|  | 	add_definitions(-D_CRT_SECURE_NO_WARNINGS -W4) | ||||||
|  | endif() | ||||||
|  |  | ||||||
| add_subdirectory(src) | add_subdirectory(src) | ||||||
| add_subdirectory(test) | add_subdirectory(test) | ||||||
| @@ -50,7 +50,7 @@ static char unescapeChar(char c) | |||||||
|  |  | ||||||
|     const char* p = "b\bf\fn\nr\rt\t"; |     const char* p = "b\bf\fn\nr\rt\t"; | ||||||
|  |  | ||||||
|     while (true) |     for (;;) | ||||||
|     { |     { | ||||||
|         if (p[0] == 0) return c; |         if (p[0] == 0) return c; | ||||||
|         if (p[0] == c) return p[1]; |         if (p[0] == c) return p[1]; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user