fix format and remove unused arg-warning

This commit is contained in:
Patrick Boettcher 2019-01-24 18:25:06 +01:00
parent 011bd4470e
commit 4b6330a0a8
2 changed files with 7 additions and 7 deletions

View File

@ -305,7 +305,7 @@ template <>
const std::string logical_combination<oneOf>::key = "oneOf"; const std::string logical_combination<oneOf>::key = "oneOf";
template <> template <>
bool logical_combination<allOf>::is_validate_complete(const json &instance, basic_error_handler &e, bool err, size_t count) bool logical_combination<allOf>::is_validate_complete(const json &instance, basic_error_handler &e, bool err, size_t)
{ {
if (err) if (err)
e.error("", instance, "at least one schema has failed, but ALLOF them are required to validate."); e.error("", instance, "at least one schema has failed, but ALLOF them are required to validate.");
@ -313,13 +313,13 @@ bool logical_combination<allOf>::is_validate_complete(const json &instance, basi
} }
template <> template <>
bool logical_combination<anyOf>::is_validate_complete(const json &instance, basic_error_handler &e, bool err, size_t count) bool logical_combination<anyOf>::is_validate_complete(const json &, basic_error_handler &, bool, size_t count)
{ {
return count == 1; return count == 1;
} }
template <> template <>
bool logical_combination<oneOf>::is_validate_complete(const json &instance, basic_error_handler &e, bool err, size_t count) bool logical_combination<oneOf>::is_validate_complete(const json &instance, basic_error_handler &e, bool, size_t count)
{ {
if (count > 1) if (count > 1)
e.error("", instance, "more than one schema has succeeded, but only ONEOF them is required to validate."); e.error("", instance, "more than one schema has succeeded, but only ONEOF them is required to validate.");