Skip to content

Commit

Permalink
Remove extra semi colon from faiss/impl/IDSelector.h
Browse files Browse the repository at this point in the history
Summary:
`-Wextra-semi` or `-Wextra-semi-stmt`

If the code compiles, this is safe to land.

Reviewed By: palmje

Differential Revision: D51995085

fbshipit-source-id: c0a4f134f9361143f337521759793d1cd86e145c
  • Loading branch information
r-barnes authored and tarang-jain committed Jan 11, 2024
1 parent 2f78ed1 commit f6727b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions faiss/impl/IDSelector.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ struct IDSelectorAnd : IDSelector {
: lhs(lhs), rhs(rhs) {}
bool is_member(idx_t id) const final {
return lhs->is_member(id) && rhs->is_member(id);
};
}
virtual ~IDSelectorAnd() {}
};

Expand All @@ -153,7 +153,7 @@ struct IDSelectorOr : IDSelector {
: lhs(lhs), rhs(rhs) {}
bool is_member(idx_t id) const final {
return lhs->is_member(id) || rhs->is_member(id);
};
}
virtual ~IDSelectorOr() {}
};

Expand All @@ -166,7 +166,7 @@ struct IDSelectorXOr : IDSelector {
: lhs(lhs), rhs(rhs) {}
bool is_member(idx_t id) const final {
return lhs->is_member(id) ^ rhs->is_member(id);
};
}
virtual ~IDSelectorXOr() {}
};

Expand Down
2 changes: 1 addition & 1 deletion faiss/impl/ResidualQuantizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@ struct ResidualQuantizer : AdditiveQuantizer {
std::vector<float> cent_norms;
};

}; // namespace faiss
} // namespace faiss
2 changes: 1 addition & 1 deletion faiss/utils/sorting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void parallel_merge(
}
}

}; // namespace
} // namespace

void fvec_argsort(size_t n, const float* vals, size_t* perm) {
for (size_t i = 0; i < n; i++) {
Expand Down

0 comments on commit f6727b3

Please sign in to comment.