Skip to content

Commit d474d78

Browse files
committed
fix some warnings
1 parent 5b43ac6 commit d474d78

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/analyzerinfo.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ class CPPCHECKLIB AnalyzerInformation {
5858
bool analyzeFile(const std::string &buildDir, const std::string &sourcefile, const std::string &cfgHash, std::size_t fileHash, std::list<ErrorMessage> &errors);
5959
void reportErr(const ErrorMessage &msg);
6060
void setFileInfo(const std::string &check, const std::string &fileInfo);
61-
static std::string getAnalyzerInfoFile(const std::string &buildDir, const std::string &sourcefile, const std::string &cfg);
61+
static std::string getAnalyzerInfoFile(const std::string &buildDir, const std::string &sourcefile, const std::string &cfghash);
6262
protected:
63-
static std::string getAnalyzerInfoFileFromFilesTxt(std::istream& filesTxt, const std::string &sourcefile, const std::string &cfg);
63+
static std::string getAnalyzerInfoFileFromFilesTxt(std::istream& filesTxt, const std::string &sourcefile, const std::string &cfghash);
6464
private:
6565
std::ofstream mOutputStream;
6666
std::string mAnalyzerInfoFile;

lib/utils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ static inline T* empty_if_null(T* p)
400400
template<typename T>
401401
static inline T rotateLeft(T value, std::size_t amount)
402402
{
403-
return (value << amount) | (value >> (8 * sizeof(T) - amount % (8 * sizeof(T))));
403+
return (value << amount) | (value >> ((8 * sizeof(T)) - (amount % (8 * sizeof(T)))));
404404
}
405405

406406
/**

0 commit comments

Comments
 (0)