Merge pull request #93 from Delgan/fix-unused-args

Fix compilation errors due to unused parameters
This commit is contained in:
Tristan Penman 2020-07-15 18:37:28 +10:00 committed by GitHub
commit 0db0d139b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 13 deletions

View File

@ -94,12 +94,12 @@ public:
explicit StdStringAdapter(const std::string &value)
: m_value(value) { }
bool applyToArray(ArrayValueCallback fn) const override
bool applyToArray(ArrayValueCallback) const override
{
return maybeArray();
}
bool applyToObject(ObjectMemberCallback fn) const override
bool applyToObject(ObjectMemberCallback) const override
{
return maybeObject();
}
@ -190,7 +190,7 @@ public:
throw std::runtime_error("Not supported");
}
bool getArraySize(size_t &result) const override
bool getArraySize(size_t &) const override
{
throw std::runtime_error("Not supported");
}
@ -200,7 +200,7 @@ public:
throw std::runtime_error("Not supported");
}
bool getBool(bool &result) const override
bool getBool(bool &) const override
{
throw std::runtime_error("Not supported");
}
@ -210,7 +210,7 @@ public:
throw std::runtime_error("Not supported");
}
bool getDouble(double &result) const override
bool getDouble(double &) const override
{
throw std::runtime_error("Not supported");
}
@ -220,7 +220,7 @@ public:
throw std::runtime_error("Not supported");
}
bool getInteger(int64_t &result) const override
bool getInteger(int64_t &) const override
{
throw std::runtime_error("Not supported");
}
@ -230,7 +230,7 @@ public:
throw std::runtime_error("Not supported");
}
bool getNumber(double &result) const override
bool getNumber(double &) const override
{
throw std::runtime_error("Not supported");
}
@ -240,7 +240,7 @@ public:
throw std::runtime_error("Not supported");
}
bool getObjectSize(size_t &result) const override
bool getObjectSize(size_t &) const override
{
throw std::runtime_error("Not supported");
}
@ -363,12 +363,12 @@ public:
throw std::runtime_error("Not supported");
}
bool operator==(const StdStringArrayValueIterator &other) const
bool operator==(const StdStringArrayValueIterator &) const
{
return true;
}
bool operator!=(const StdStringArrayValueIterator &other) const
bool operator!=(const StdStringArrayValueIterator &) const
{
return false;
}
@ -388,7 +388,7 @@ public:
throw std::runtime_error("Not supported");
}
void advance(std::ptrdiff_t n)
void advance(std::ptrdiff_t)
{
throw std::runtime_error("Not supported");
}
@ -453,7 +453,7 @@ inline StdStringObjectMemberIterator StdStringObject::end() const
return {};
}
inline StdStringObjectMemberIterator StdStringObject::find(const std::string &propertyName) const
inline StdStringObjectMemberIterator StdStringObject::find(const std::string &) const
{
return {};
}

View File

@ -36,7 +36,7 @@ struct BasicConstraint: Constraint
return visitor.visit(*static_cast<const ConstraintType*>(this));
}
Constraint * clone(CustomAlloc allocFn, CustomFree freeFn) const override
Constraint * clone(CustomAlloc allocFn, CustomFree) const override
{
void *ptr = allocFn(sizeof(ConstraintType));
if (!ptr) {