removing variable to prevent warnings
Co-Authpred-By: Patrick Boettcher <pboettch@users.noreply.github.com>
This commit is contained in:
parent
35e06a95a8
commit
ad19c6f04f
@ -1,15 +1,5 @@
|
||||
#include "json-patch.hpp"
|
||||
|
||||
#ifdef __has_cpp_attribute
|
||||
#if __has_cpp_attribute(maybe_unused)
|
||||
#define JSV_MAYBE_UNUSED [[maybe_unused]]
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef JSV_MAYBE_UNUSED
|
||||
#define JSV_MAYBE_UNUSED
|
||||
#endif
|
||||
|
||||
namespace nlohmann
|
||||
{
|
||||
|
||||
@ -69,7 +59,7 @@ void json_patch::validateJsonPatch(json const &patch)
|
||||
|
||||
try {
|
||||
// try parse to path
|
||||
JSV_MAYBE_UNUSED const auto p = json::json_pointer{op["path"].get<std::string>()};
|
||||
json::json_pointer{op["path"].get<std::string>()};
|
||||
} catch (json::exception &e) {
|
||||
throw JsonPatchFormatException{e.what()};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user