Skip to content

Commit

Permalink
Remove unused fallthrough (#3296)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #3296

same as title

Reviewed By: algoriddle

Differential Revision: D54973709

fbshipit-source-id: 545118e30773c6a4ea3f544a3a20c5ba8c394f69
  • Loading branch information
junjieqi authored and facebook-github-bot committed Mar 19, 2024
1 parent f7fe62e commit cf364ec
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions faiss/utils/hamming_distance/generic-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ struct HammingComputerDefault {
len -= 8;
accu += popcount64(a64[i] ^ b64[i]);
i++;
[[fallthrough]];
case 7:
accu += popcount64(a64[i] ^ b64[i]);
i++;
Expand Down Expand Up @@ -309,7 +308,6 @@ struct HammingComputerDefault {
const uint8_t* a = a8 + 8 * quotient8;
const uint8_t* b = b8 + 8 * quotient8;
switch (remainder8) {
[[fallthrough]];
case 7:
accu += hamdis_tab_ham_bytes[a[6] ^ b[6]];
[[fallthrough]];
Expand Down

0 comments on commit cf364ec

Please sign in to comment.