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

This commit is contained in:
Benoit Blanchon
2021-08-03 09:04:14 +00:00
parent 6717700d3b
commit 1b74ad0731
2 changed files with 6 additions and 1 deletions

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