Fix some compiler warnings which got introduced recently
This commit is contained in:
parent
99dfd55d0c
commit
1604e751e5
|
@ -1022,7 +1022,7 @@ Check::FileInfo *CheckUninitVar::getFileInfo(const Tokenizer *tokenizer, const S
|
|||
return mfi;
|
||||
}
|
||||
|
||||
void CheckUninitVar::analyseWholeProgram(const std::list<Check::FileInfo*> &fileInfo, ErrorLogger &errorLogger)
|
||||
void CheckUninitVar::analyseWholeProgram(const std::list<Check::FileInfo*> &fileInfo, const Settings&, ErrorLogger &errorLogger)
|
||||
{
|
||||
(void)fileInfo;
|
||||
(void)errorLogger;
|
||||
|
|
|
@ -85,7 +85,7 @@ public:
|
|||
Check::FileInfo *getFileInfo(const Tokenizer *tokenizer, const Settings *settings) const;
|
||||
|
||||
/** @brief Analyse all file infos for all TU */
|
||||
void analyseWholeProgram(const std::list<Check::FileInfo*> &fileInfo, ErrorLogger &errorLogger);
|
||||
void analyseWholeProgram(const std::list<Check::FileInfo*> &fileInfo, const Settings& settings, ErrorLogger &errorLogger);
|
||||
|
||||
void analyseFunctions(const Tokenizer *tokenizer, std::set<std::string> &f) const;
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ private:
|
|||
TEST_CASE(templateSimplifierCrashes);
|
||||
}
|
||||
|
||||
std::string checkCode(const char code[], const std::string filename = "test.cpp") {
|
||||
std::string checkCode(const char code[], const std::string& filename = "test.cpp") {
|
||||
// double the tests - run each example as C as well as C++
|
||||
const std::string alternatefilename = (filename=="test.c") ? "test.cpp" : "test.c";
|
||||
// run alternate check first. It should only ensure stability
|
||||
|
|
Loading…
Reference in New Issue