fixed some compiler warnings (#3502)
This commit is contained in:
parent
f09b4139fe
commit
99db1f3f22
|
@ -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 {
|
||||
|
|
|
@ -4479,7 +4479,6 @@ void Tokenizer::createLinks2()
|
|||
if (isC())
|
||||
return;
|
||||
|
||||
const Token * templateToken = nullptr;
|
||||
bool isStruct = false;
|
||||
|
||||
std::stack<Token*> type;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue