Merge pull request #2957 from Hallot/bug/fix-some-clang-warnings
Fix some extra ";" clang warnings
This commit is contained in:
commit
611fd22557
@ -94,7 +94,7 @@ struct external_constructor<value_t::binary>
|
|||||||
{
|
{
|
||||||
j.m_value.destroy(j.m_type);
|
j.m_value.destroy(j.m_type);
|
||||||
j.m_type = value_t::binary;
|
j.m_type = value_t::binary;
|
||||||
j.m_value = typename BasicJsonType::binary_t(std::move(b));;
|
j.m_value = typename BasicJsonType::binary_t(std::move(b));
|
||||||
j.assert_invariant();
|
j.assert_invariant();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -67,7 +67,7 @@ class binary_writer
|
|||||||
case value_t::discarded:
|
case value_t::discarded:
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
JSON_THROW(type_error::create(317, "to serialize to BSON, top-level type must be object, but is " + std::string(j.type_name()), j));;
|
JSON_THROW(type_error::create(317, "to serialize to BSON, top-level type must be object, but is " + std::string(j.type_name()), j));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4602,7 +4602,7 @@ struct external_constructor<value_t::binary>
|
|||||||
{
|
{
|
||||||
j.m_value.destroy(j.m_type);
|
j.m_value.destroy(j.m_type);
|
||||||
j.m_type = value_t::binary;
|
j.m_type = value_t::binary;
|
||||||
j.m_value = typename BasicJsonType::binary_t(std::move(b));;
|
j.m_value = typename BasicJsonType::binary_t(std::move(b));
|
||||||
j.assert_invariant();
|
j.assert_invariant();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -13617,7 +13617,7 @@ class binary_writer
|
|||||||
case value_t::discarded:
|
case value_t::discarded:
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
JSON_THROW(type_error::create(317, "to serialize to BSON, top-level type must be object, but is " + std::string(j.type_name()), j));;
|
JSON_THROW(type_error::create(317, "to serialize to BSON, top-level type must be object, but is " + std::string(j.type_name()), j));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
test/thirdparty/Fuzzer/FuzzerDriver.cpp
vendored
2
test/thirdparty/Fuzzer/FuzzerDriver.cpp
vendored
@ -148,7 +148,7 @@ static bool ParseOneFlag(const char *Param) {
|
|||||||
int Val = MyStol(Str);
|
int Val = MyStol(Str);
|
||||||
*FlagDescriptions[F].IntFlag = Val;
|
*FlagDescriptions[F].IntFlag = Val;
|
||||||
if (Flags.verbosity >= 2)
|
if (Flags.verbosity >= 2)
|
||||||
Printf("Flag: %s %d\n", Name, Val);;
|
Printf("Flag: %s %d\n", Name, Val);
|
||||||
return true;
|
return true;
|
||||||
} else if (FlagDescriptions[F].UIntFlag) {
|
} else if (FlagDescriptions[F].UIntFlag) {
|
||||||
unsigned int Val = std::stoul(Str);
|
unsigned int Val = std::stoul(Str);
|
||||||
|
Loading…
Reference in New Issue
Block a user