diff --git a/src/json-patch.cpp b/src/json-patch.cpp index 4579432..7b6306b 100644 --- a/src/json-patch.cpp +++ b/src/json-patch.cpp @@ -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()}; + json::json_pointer{op["path"].get()}; } catch (json::exception &e) { throw JsonPatchFormatException{e.what()}; }