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 'X':
case 'i': case 'i':
i_d_x_f_found = true; i_d_x_f_found = true;
handleNextParameter = true;
break;
case 'c': case 'c':
case 'e': case 'e':
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; (void)fileInfo;
check(&errorLogger); check(&errorLogger);

View File

@ -51,7 +51,7 @@ public:
Check::FileInfo *getFileInfo(const Tokenizer *tokenizer, const Settings *settings) const; Check::FileInfo *getFileInfo(const Tokenizer *tokenizer, const Settings *settings) const;
/** @brief Analyse all file infos for all TU */ /** @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; static CheckUnusedFunctions instance;

View File

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

View File

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