Fix compiler warnings

This commit is contained in:
Alexander Mai 2015-06-28 18:07:31 +02:00
parent 2c73518e29
commit 02a3a01eca
5 changed files with 6 additions and 2 deletions

View File

@ -1417,6 +1417,8 @@ MathLib::biguint CheckBufferOverrun::countSprintfLength(const std::string &input
case 'X':
case 'i':
i_d_x_f_found = true;
handleNextParameter = true;
break;
case 'c':
case 'e':
case 'E':

View File

@ -265,7 +265,7 @@ Check::FileInfo *CheckUnusedFunctions::getFileInfo(const Tokenizer *tokenizer, c
}
void CheckUnusedFunctions::analyseWholeProgram(const std::list<Check::FileInfo*> &fileInfo, ErrorLogger &errorLogger)
void CheckUnusedFunctions::analyseWholeProgram(const std::list<Check::FileInfo*> &fileInfo, const Settings& settings, ErrorLogger &errorLogger)
{
(void)fileInfo;
check(&errorLogger);

View File

@ -51,7 +51,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);
static CheckUnusedFunctions instance;

View File

@ -94,6 +94,7 @@ public:
private:
/** No implementation */
ScopeGuard();
ScopeGuard& operator=(const ScopeGuard &);
Variables & _guarded;

View File

@ -35,6 +35,7 @@ class SymbolDatabase;
class CPPCHECKLIB ExecutionPath {
private:
/** No implementation */
ExecutionPath();
ExecutionPath& operator=(const ExecutionPath &);
protected: