Fix compiler warnings
This commit is contained in:
parent
2c73518e29
commit
02a3a01eca
|
@ -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':
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -94,6 +94,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** No implementation */
|
/** No implementation */
|
||||||
|
ScopeGuard();
|
||||||
ScopeGuard& operator=(const ScopeGuard &);
|
ScopeGuard& operator=(const ScopeGuard &);
|
||||||
|
|
||||||
Variables & _guarded;
|
Variables & _guarded;
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue