1
0
mirror of https://github.com/nlohmann/json synced 2024-11-22 12:00:05 +00:00

🚨 fix warnings

This commit is contained in:
Niels Lohmann 2021-01-17 13:32:26 +01:00
parent aeecc09ba1
commit e23af7434d
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 6 additions and 2 deletions

View File

@ -1255,6 +1255,8 @@ class basic_json
{ {
return j.m_parent == this; return j.m_parent == this;
})); }));
#else
static_cast<void>(check_parents);
#endif #endif
} }
@ -3611,7 +3613,7 @@ class basic_json
#if JSON_DIAGNOSTICS #if JSON_DIAGNOSTICS
// set parent for values added above // 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 #endif
} }

View File

@ -18038,6 +18038,8 @@ class basic_json
{ {
return j.m_parent == this; return j.m_parent == this;
})); }));
#else
static_cast<void>(check_parents);
#endif #endif
} }
@ -20394,7 +20396,7 @@ class basic_json
#if JSON_DIAGNOSTICS #if JSON_DIAGNOSTICS
// set parent for values added above // 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 #endif
} }