We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
prohibitedreaddirCalled
1 parent 182f0aa commit 6f72db9Copy full SHA for 6f72db9
1 file changed
cli/filelister.cpp
@@ -208,6 +208,7 @@ static std::string addFiles2(std::list<FileWithDetails> &files,
208
std::string new_path = path;
209
new_path += '/';
210
211
+ // cppcheck-suppress prohibitedreaddirCalled
212
while (const dirent* dir_result = readdir(dir)) {
213
if ((std::strcmp(dir_result->d_name, ".") == 0) ||
214
(std::strcmp(dir_result->d_name, "..") == 0))
0 commit comments