Skip to content

Commit 6d00c41

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove unused variables in faiss/utils/hamming_distance/neon-inl.h
Summary: LLVM-15 has a warning `-Wunused-but-set-variable` which we treat as an error because it's so often diagnostic of a code issue. Unused variables can compromise readability or, worse, performance. This diff either (a) removes an unused variable and, possibly, it's associated code, or (b) qualifies the variable with `[[maybe_unused]]`, mostly in cases where the variable _is_ used, but, eg, in an `assert` statement that isn't present in production code. - If you approve of this diff, please use the "Accept & Ship" button :-) Reviewed By: palmje Differential Revision: D53779537 fbshipit-source-id: 698cdc6720c10d219e56ecd2aad8f4cbe636c639
1 parent c0624d2 commit 6d00c41

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

faiss/utils/hamming_distance/neon-inl.h

-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ struct HammingComputer32 {
260260
}
261261

262262
inline int hamming(const uint8_t* b8) const {
263-
const uint64_t* b = (uint64_t*)b8;
264263
uint8x16_t b0 = vld1q_u8(b8);
265264
uint8x16_t b1 = vld1q_u8(b8 + 16);
266265

0 commit comments

Comments
 (0)