add warnings for clang and fix them

This commit is contained in:
pantor
2021-06-17 19:48:28 +02:00
parent eaec58d8aa
commit 8d65633b6a
5 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -352,7 +352,7 @@ public:
BlockNode block;
BlockNode *const parent;
explicit BlockStatementNode(BlockNode *const parent, const std::string& name, size_t pos) : StatementNode(pos), parent(parent), name(name) { }
explicit BlockStatementNode(BlockNode *const parent, const std::string& name, size_t pos) : StatementNode(pos), name(name), parent(parent) { }
void accept(NodeVisitor& v) const {
v.visit(*this);
+1 -1
View File
@@ -81,7 +81,7 @@ class Parser {
auto function = operator_stack.top();
operator_stack.pop();
for (size_t i = 0; i < function->number_args; ++i) {
for (int i = 0; i < function->number_args; ++i) {
function->arguments.insert(function->arguments.begin(), arguments.back());
arguments.pop_back();
}