fixed some compiler warnings (#3502)

This commit is contained in:
Oliver Stöneberg 2021-10-13 12:10:26 +02:00 committed by GitHub
parent f09b4139fe
commit 99db1f3f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 14 deletions

View File

@ -187,10 +187,6 @@ static std::vector<std::string> splitString(const std::string &line)
return ret;
}
static bool contains(const std::vector<std::string> &haystack, const std::string &needle)
{
return std::find(haystack.begin(), haystack.end(), needle) != haystack.end();
}
namespace clangimport {
struct Data {

View File

@ -4479,7 +4479,6 @@ void Tokenizer::createLinks2()
if (isC())
return;
const Token * templateToken = nullptr;
bool isStruct = false;
std::stack<Token*> type;

View File

@ -5965,14 +5965,6 @@ static void valueFlowSwitchVariable(TokenList *tokenlist, SymbolDatabase* symbol
}
}
static void setTokenValues(Token *tok, const std::list<ValueFlow::Value> &values, const Settings *settings)
{
for (const ValueFlow::Value &value : values) {
if (value.isIntValue())
setTokenValue(tok, value, settings);
}
}
static std::list<ValueFlow::Value> getFunctionArgumentValues(const Token *argtok)
{
std::list<ValueFlow::Value> argvalues(argtok->values());
@ -6517,7 +6509,7 @@ static bool isContainerSizeChanged(nonneg int varId,
return false;
}
std::vector<const Variable*> getVariables(const Token* tok)
static std::vector<const Variable*> getVariables(const Token* tok)
{
std::vector<const Variable*> result;
visitAstNodes(tok, [&](const Token* child) {