🚨 fix warnings

This commit is contained in:
Niels Lohmann committed 2021-01-17 13:32:26 +01:00
1 parent aeecc09ba1
commit e23af7434d
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -18038,6 +18038,8 @@ class basic_json
{
return j.m_parent == this;
}));
#else
static_cast<void>(check_parents);
#endif
}
@@ -20394,7 +20396,7 @@ class basic_json
#if JSON_DIAGNOSTICS
// set parent for values added above
set_parents(begin() + previous_size, idx + 1 - previous_size);
set_parents(begin() + static_cast<typename iterator::difference_type>(previous_size), static_cast<typename iterator::difference_type>(idx + 1 - previous_size));
#endif
}