diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 0d3392bba..6f5d7c067 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -64,7 +64,7 @@ namespace { std::string scriptFile; std::string args; - std::string getFullPath(const std::string &fileName, const std::string &exename) const { + static std::string getFullPath(const std::string &fileName, const std::string &exename) { if (Path::fileExists(fileName)) return fileName;