diff --git a/include/nlohmann/detail/conversions/to_json.hpp b/include/nlohmann/detail/conversions/to_json.hpp index 08462a4bb859958e4a58b767885c84854f73a37e..06323a27291b6d46ce73c6f4f0d309fe93cae757 100644 --- a/include/nlohmann/detail/conversions/to_json.hpp +++ b/include/nlohmann/detail/conversions/to_json.hpp @@ -94,7 +94,7 @@ struct external_constructor<value_t::binary> { j.m_value.destroy(j.m_type); 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(); } }; diff --git a/include/nlohmann/detail/output/binary_writer.hpp b/include/nlohmann/detail/output/binary_writer.hpp index 1fa0cd2f7ae0e6ff60f4fbedd43a32398035f4b8..42fd50e3213cedd05ab43179c3b6e02195ee847d 100644 --- a/include/nlohmann/detail/output/binary_writer.hpp +++ b/include/nlohmann/detail/output/binary_writer.hpp @@ -67,7 +67,7 @@ class binary_writer case value_t::discarded: 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)); } } } diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 9858388b52b0fac0b76ddccb1a9c10f493f2eab7..077338cb23e457791b11fcb55bc1d45b3ff2fa7c 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -4602,7 +4602,7 @@ struct external_constructor<value_t::binary> { j.m_value.destroy(j.m_type); 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(); } }; @@ -13617,7 +13617,7 @@ class binary_writer case value_t::discarded: 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)); } } } diff --git a/test/thirdparty/Fuzzer/FuzzerDriver.cpp b/test/thirdparty/Fuzzer/FuzzerDriver.cpp index 95b0721c87d0581bdfd5d8f0fc537eb36adecc6e..5ab6df2d562b09bc24173b2303664213e203ae15 100644 --- a/test/thirdparty/Fuzzer/FuzzerDriver.cpp +++ b/test/thirdparty/Fuzzer/FuzzerDriver.cpp @@ -148,7 +148,7 @@ static bool ParseOneFlag(const char *Param) { int Val = MyStol(Str); *FlagDescriptions[F].IntFlag = Val; if (Flags.verbosity >= 2) - Printf("Flag: %s %d\n", Name, Val);; + Printf("Flag: %s %d\n", Name, Val); return true; } else if (FlagDescriptions[F].UIntFlag) { unsigned int Val = std::stoul(Str);