Skip to content
Snippets Groups Projects
Commit a7f8eaa3 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

remove warnings introduced in 24455239

parent 853cce55
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ MacroDriver::replace_vars_in_str(const string &s) const
regex_search(macro, name, name_regex);
try
{
const MacroValue *mv;
const MacroValue *mv = nullptr;
bool found_in_func_env = false;
for (unsigned i = func_env.size(); i-- > 0;)
{
......@@ -162,7 +162,7 @@ MacroDriver::eval_string_function(const string &name, const MacroValue *args)
throw MacroValue::TypeError("You are using " + name + " as if it were a macro function");
vector<string *> func_args = fmv->get_args();
if (func_args.size() != dynamic_cast<const IntMV *>(args->length())->get_int_value())
if (func_args.size() != (size_t)dynamic_cast<const IntMV *>(args->length())->get_int_value())
{
cerr << "Macroprocessor: The evaluation of: " << name << " could not be completed" << endl
<< "because the number of arguments provided is different than the number of" << endl
......
......@@ -523,7 +523,7 @@ FuncMV::operator==(const MacroValue &mv) const noexcept(false)
return new IntMV(driver, 0);
if (args.size() == mv2->args.size())
for (int i = 0; i < args.size(); i++)
for (size_t i = 0; i < args.size(); i++)
if (args[i] != mv2->args[i])
return new IntMV(driver, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment