Add wextra level warnings.

This commit is contained in:
James Grogan 2023-01-23 11:55:58 +00:00
parent e559f9674d
commit 119ea6f2cc
62 changed files with 235 additions and 231 deletions

View file

@ -113,7 +113,7 @@ const std::string& TemplateExpression::getContent() const
return mContent;
}
std::string TemplateExpression::render(TemplateSubstitutionContext* substitutions, TemplateNode* parentContext)
std::string TemplateExpression::render(TemplateSubstitutionContext* substitutions, TemplateNode*)
{
if (substitutions && substitutions->hasSubstitution(mContent))
{
@ -143,7 +143,7 @@ bool TemplateTextBody::hasContent() const
return !mContent.empty();
}
std::string TemplateTextBody::render(TemplateSubstitutionContext* substitutions, TemplateNode* parentContext)
std::string TemplateTextBody::render(TemplateSubstitutionContext*, TemplateNode*)
{
std::string content;
for(unsigned idx=0; idx<mContent.size(); idx++)

View file

@ -191,7 +191,7 @@ void TemplateFile::onFoundBlock(const std::vector<std::string> args)
mWorkingNode = temp;
}
void TemplateFile::onFoundEndBlock(const std::vector<std::string> args)
void TemplateFile::onFoundEndBlock(const std::vector<std::string>)
{
mWorkingNode = mWorkingNode->getParent();
}