Skip to content

Commit c109174

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Fix LLVM-19 compilation issue in faiss/AutoTune.cpp (#4220)
Summary: Pull Request resolved: #4220 LLVM-19 is incoming. This fixes an issue preventing it. Delays to previous platform upgrades cost $3M/week. Reviewed By: dtolnay Differential Revision: D70449926 fbshipit-source-id: 20e0882b9363670d6c010e1c7870cb04155a3a9d
1 parent 615c17e commit c109174

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

faiss/AutoTune.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ bool ParameterSpace::combination_ge(size_t c1, size_t c2) const {
314314
}
315315

316316
#define DC(classname) \
317-
const classname* ix = dynamic_cast<const classname*>(index)
317+
[[maybe_unused]] const classname* ix = dynamic_cast<const classname*>(index)
318318

319319
static void init_pq_ParameterRange(
320320
const ProductQuantizer& pq,

0 commit comments

Comments
 (0)