mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Fixed error "attributes are not allowed on a function-definition"
This commit is contained in:
		| @@ -1,6 +1,11 @@ | |||||||
| ArduinoJson: change log | ArduinoJson: change log | ||||||
| ======================= | ======================= | ||||||
|  |  | ||||||
|  | HEAD | ||||||
|  | ---- | ||||||
|  |  | ||||||
|  | * Fixed error "attributes are not allowed on a function-definition" | ||||||
|  |  | ||||||
| v6.10.0 (2019-03-22) | v6.10.0 (2019-03-22) | ||||||
| ------- | ------- | ||||||
|  |  | ||||||
|   | |||||||
| @@ -24,8 +24,8 @@ class MsgPackSerializer { | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   template <typename T> |   template <typename T> | ||||||
|   typename enable_if<sizeof(T) == 8>::type visitFloat(T value64) |   ARDUINOJSON_NO_SANITIZE("float-cast-overflow") | ||||||
|       ARDUINOJSON_NO_SANITIZE("float-cast-overflow") { |   typename enable_if<sizeof(T) == 8>::type visitFloat(T value64) { | ||||||
|     float value32 = float(value64); |     float value32 = float(value64); | ||||||
|     if (value32 == value64) { |     if (value32 == value64) { | ||||||
|       writeByte(0xCA); |       writeByte(0xCA); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user