Commit 99c0e2b
Remove unused variables in faiss/utils/sorting.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: bunnypak, dmm-fb
Differential Revision: D53011673
fbshipit-source-id: 011204944fdc48627a34e1358833fc525dcc2c281 parent e8494f6 commit 99c0e2b
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
794 | | - | |
795 | 794 | | |
796 | 795 | | |
797 | 796 | | |
| |||
0 commit comments