Skip to content

Commit 99db1f3

Browse files
authored
fixed some compiler warnings (#3502)
1 parent f09b413 commit 99db1f3

3 files changed

Lines changed: 1 addition & 14 deletions

File tree

lib/clangimport.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,6 @@ static std::vector<std::string> splitString(const std::string &line)
187187
return ret;
188188
}
189189

190-
static bool contains(const std::vector<std::string> &haystack, const std::string &needle)
191-
{
192-
return std::find(haystack.begin(), haystack.end(), needle) != haystack.end();
193-
}
194190

195191
namespace clangimport {
196192
struct Data {

lib/tokenize.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4479,7 +4479,6 @@ void Tokenizer::createLinks2()
44794479
if (isC())
44804480
return;
44814481

4482-
const Token * templateToken = nullptr;
44834482
bool isStruct = false;
44844483

44854484
std::stack<Token*> type;

lib/valueflow.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5965,14 +5965,6 @@ static void valueFlowSwitchVariable(TokenList *tokenlist, SymbolDatabase* symbol
59655965
}
59665966
}
59675967

5968-
static void setTokenValues(Token *tok, const std::list<ValueFlow::Value> &values, const Settings *settings)
5969-
{
5970-
for (const ValueFlow::Value &value : values) {
5971-
if (value.isIntValue())
5972-
setTokenValue(tok, value, settings);
5973-
}
5974-
}
5975-
59765968
static std::list<ValueFlow::Value> getFunctionArgumentValues(const Token *argtok)
59775969
{
59785970
std::list<ValueFlow::Value> argvalues(argtok->values());
@@ -6517,7 +6509,7 @@ static bool isContainerSizeChanged(nonneg int varId,
65176509
return false;
65186510
}
65196511

6520-
std::vector<const Variable*> getVariables(const Token* tok)
6512+
static std::vector<const Variable*> getVariables(const Token* tok)
65216513
{
65226514
std::vector<const Variable*> result;
65236515
visitAstNodes(tok, [&](const Token* child) {

0 commit comments

Comments
 (0)