From 1863ccb0a7e08c2b686d42efa4d81a97bc2a93a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Wed, 26 Feb 2020 14:52:43 +0100 Subject: [PATCH] fixed Clang warnings about unused variables (#2554) --- lib/clangimport.cpp | 1 - lib/valueflow.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/lib/clangimport.cpp b/lib/clangimport.cpp index 462db07d5..b792b7d28 100644 --- a/lib/clangimport.cpp +++ b/lib/clangimport.cpp @@ -275,7 +275,6 @@ namespace clangimport { int mFile = 0; int mLine = 1; int mCol = 1; - int mVarId = 0; std::vector mExtTokens; Data *mData; }; diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 8906ae7d1..7abc73a78 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -103,8 +103,6 @@ #include #include -static const int TIMEOUT = 10; // Do not repeat ValueFlow analysis more than 10 seconds - static void bailoutInternal(TokenList *tokenlist, ErrorLogger *errorLogger, const Token *tok, const std::string &what, const std::string &file, int line, const std::string &function) { std::list callstack(1, ErrorLogger::ErrorMessage::FileLocation(tok, tokenlist));