mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 18:20:27 +01:00
Fix compilation errors due to unused parameters
This commit is contained in:
parent
105e345a73
commit
ca031221fc
@ -94,12 +94,12 @@ public:
|
|||||||
explicit StdStringAdapter(const std::string &value)
|
explicit StdStringAdapter(const std::string &value)
|
||||||
: m_value(value) { }
|
: m_value(value) { }
|
||||||
|
|
||||||
bool applyToArray(ArrayValueCallback fn) const override
|
bool applyToArray(ArrayValueCallback /*fn*/) const override
|
||||||
{
|
{
|
||||||
return maybeArray();
|
return maybeArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool applyToObject(ObjectMemberCallback fn) const override
|
bool applyToObject(ObjectMemberCallback /*fn*/) const override
|
||||||
{
|
{
|
||||||
return maybeObject();
|
return maybeObject();
|
||||||
}
|
}
|
||||||
@ -190,7 +190,7 @@ public:
|
|||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getArraySize(size_t &result) const override
|
bool getArraySize(size_t &/*result*/) const override
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
@ -200,7 +200,7 @@ public:
|
|||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getBool(bool &result) const override
|
bool getBool(bool &/*result*/) const override
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
@ -210,7 +210,7 @@ public:
|
|||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getDouble(double &result) const override
|
bool getDouble(double &/*result*/) const override
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
@ -220,7 +220,7 @@ public:
|
|||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getInteger(int64_t &result) const override
|
bool getInteger(int64_t &/*result*/) const override
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
@ -230,7 +230,7 @@ public:
|
|||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getNumber(double &result) const override
|
bool getNumber(double &/*result*/) const override
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
@ -240,7 +240,7 @@ public:
|
|||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getObjectSize(size_t &result) const override
|
bool getObjectSize(size_t &/*result*/) const override
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
@ -363,12 +363,12 @@ public:
|
|||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const StdStringArrayValueIterator &other) const
|
bool operator==(const StdStringArrayValueIterator &/*other*/) const
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator!=(const StdStringArrayValueIterator &other) const
|
bool operator!=(const StdStringArrayValueIterator &/*other*/) const
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -388,7 +388,7 @@ public:
|
|||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
void advance(std::ptrdiff_t n)
|
void advance(std::ptrdiff_t /*n*/)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Not supported");
|
throw std::runtime_error("Not supported");
|
||||||
}
|
}
|
||||||
@ -453,7 +453,7 @@ inline StdStringObjectMemberIterator StdStringObject::end() const
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
inline StdStringObjectMemberIterator StdStringObject::find(const std::string &propertyName) const
|
inline StdStringObjectMemberIterator StdStringObject::find(const std::string &/*propertyName*/) const
|
||||||
{
|
{
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ struct BasicConstraint: Constraint
|
|||||||
return visitor.visit(*static_cast<const ConstraintType*>(this));
|
return visitor.visit(*static_cast<const ConstraintType*>(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
Constraint * clone(CustomAlloc allocFn, CustomFree freeFn) const override
|
Constraint * clone(CustomAlloc allocFn, CustomFree /*freeFn*/) const override
|
||||||
{
|
{
|
||||||
void *ptr = allocFn(sizeof(ConstraintType));
|
void *ptr = allocFn(sizeof(ConstraintType));
|
||||||
if (!ptr) {
|
if (!ptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user