fix gcc compiler warnings

This commit is contained in:
Daniel Marjamäki 2021-08-22 18:06:54 +02:00
parent ac662ec07d
commit 165d48c846
2 changed files with 3 additions and 3 deletions

View File

@ -2139,7 +2139,7 @@ static void removeContradictions(std::list<ValueFlow::Value>& values)
}
}
bool sameValueType(const ValueFlow::Value& x, const ValueFlow::Value& y)
static bool sameValueType(const ValueFlow::Value& x, const ValueFlow::Value& y)
{
if (x.valueType != y.valueType)
return false;

View File

@ -4478,14 +4478,14 @@ struct Interval {
}
};
void addToErrorPath(ValueFlow::Value& value, const std::vector<const ValueFlow::Value*>& refs)
static void addToErrorPath(ValueFlow::Value& value, const std::vector<const ValueFlow::Value*>& refs)
{
for (const ValueFlow::Value* ref : refs) {
value.errorPath.insert(value.errorPath.end(), ref->errorPath.begin(), ref->errorPath.end());
}
}
void setValueKind(ValueFlow::Value& value, const std::vector<const ValueFlow::Value*>& refs)
static void setValueKind(ValueFlow::Value& value, const std::vector<const ValueFlow::Value*>& refs)
{
bool isPossible = false;
bool isInconclusive = false;