Silence clang static analyzer warnings

This commit is contained in:
Andrea Mazzoleni 2026-07-30 12:40:08 +02:00
parent 52c00ea982
commit cd39ccf752
10 changed files with 35 additions and 19 deletions

View file

@ -80,7 +80,7 @@ static int clean_dir(const char* dir)
exit(EXIT_FAILURE);
/* LCOV_EXCL_STOP */
}
if (dd == 0 && errno == 0) {
if (dd == 0) {
break; /* finished */
}
@ -196,7 +196,7 @@ static void read_dir(tommy_hashdyn* poolset, const char* base_dir, const char* s
exit(EXIT_FAILURE);
/* LCOV_EXCL_STOP */
}
if (dd == 0 && errno == 0) {
if (dd == 0) {
break; /* finished */
}