Skip to content

Commit 5e3eae4

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove unused variables in faiss/utils/hamming.cpp
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: danzimm Differential Revision: D52847958 fbshipit-source-id: b3f98d8e0e4fd0e13191f0c0d907edd7c0e78db0
1 parent 739ce13 commit 5e3eae4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

faiss/utils/hamming.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
#include <faiss/utils/approx_topk_hamming/approx_topk_hamming.h>
3636
#include <faiss/utils/utils.h>
3737

38-
static const size_t BLOCKSIZE_QUERY = 8192;
39-
4038
namespace faiss {
4139

4240
size_t hamming_batch_size = 65536;

0 commit comments

Comments
 (0)