Fixed error 'dummy' may be used uninitialized on GCC 11

This commit is contained in:
Benoit Blanchon committed 2021-08-03 11:39:07 +02:00
1 parent 6717700d3b
commit 1b74ad0731
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -1,6 +1,11 @@
ArduinoJson: change log
=======================
HEAD
----
* Fixed error `'dummy' may be used uninitialized` on GCC 11
v6.18.3 (2021-07-27)
-------
+1 -1
View File
@@ -27,7 +27,7 @@ struct Converter {
}
static bool checkJson(VariantConstRef src) {
T dummy;
T dummy = T();
// clang-format off
return canConvertFromJson(src, dummy); // Error here? See https://arduinojson.org/v6/unsupported-is/
// clang-format on