mirror of
https://github.com/nlohmann/json
synced 2024-11-22 03:50:05 +00:00
🚨 fix warnings
This commit is contained in:
parent
aeecc09ba1
commit
e23af7434d
@ -1255,6 +1255,8 @@ class basic_json
|
||||
{
|
||||
return j.m_parent == this;
|
||||
}));
|
||||
#else
|
||||
static_cast<void>(check_parents);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -3611,7 +3613,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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user