Skip to content

Commit 6f72db9

Browse files
committed
filelister.cpp: mitigated prohibitedreaddirCalled selfcheck warning
1 parent 182f0aa commit 6f72db9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cli/filelister.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ static std::string addFiles2(std::list<FileWithDetails> &files,
208208
std::string new_path = path;
209209
new_path += '/';
210210

211+
// cppcheck-suppress prohibitedreaddirCalled
211212
while (const dirent* dir_result = readdir(dir)) {
212213
if ((std::strcmp(dir_result->d_name, ".") == 0) ||
213214
(std::strcmp(dir_result->d_name, "..") == 0))

0 commit comments

Comments
 (0)