Skip to content

Commit 270bb3a

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove unused-variable in dumbo/backup/dumbo/service/tests/ChainReplicatorTests.cpp +3 (facebookresearch#4024)
Summary: Pull Request resolved: facebookresearch#4024 LLVM-15 has a warning `-Wunused-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]]`. #buildsonlynotests - Builds are sufficient - If you approve of this diff, please use the "Accept & Ship" button :-) Differential Revision: D65755277 fbshipit-source-id: 13a2ad06375fd84e5e7afd69488e7fa36b658f20
1 parent f3d89c2 commit 270bb3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

faiss/utils/distances_simd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3759,7 +3759,7 @@ void fvec_add(size_t d, const float* a, float b, float* c) {
37593759
size_t i;
37603760
simd8float32 bv(b);
37613761
for (i = 0; i + 7 < d; i += 8) {
3762-
simd8float32 ci, ai, bi;
3762+
simd8float32 ci, ai;
37633763
ai.loadu(a + i);
37643764
ci = ai + bv;
37653765
ci.storeu(c + i);

0 commit comments

Comments
 (0)