Skip to content

Commit

Permalink
FIx warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed Apr 10, 2024
1 parent b1a49f8 commit 021dced
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/CkmameCache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ bool CkmameCache::compute_all_detector_hashes(bool needed_only, const std::unord
auto got_new_hashes = false;

for (auto& cache_directory : cache_directories) {
if (!cache_directory.db || needed_only && cache_directory.where != FILE_NEEDED) {
if (!cache_directory.db || (needed_only && cache_directory.where != FILE_NEEDED)) {
continue;
}
if (cache_directory.db->compute_detector_hashes(detectors)) {
Expand Down
2 changes: 2 additions & 0 deletions src/Match.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,6 @@ bool Match::quality_is_usable(Match::Quality quality) {
case OLD:
return true;
}

return false; // TODO: throw?
}

0 comments on commit 021dced

Please sign in to comment.